PHP - stripslashes 函式



語法

string stripslashes ( string $str )

定義和用法

用於去除已轉義的字串的轉義符

返回值

返回未轉義的字串

引數

序號 引數和描述
1

字串

用於搜尋的字串

示例

試試下面的例子

<?php
   echo stripcslashes("tutorials \point");
?>

這將產生以下結果:

tutorials point
php_function_reference.htm
廣告