stripcslashes函数怎样用?
作用:删除由 addcslashes() 函数增加的反斜杠。
语法:
stripcslashes(string)
参数:
string 必需,规定要搜检的字符串。
申明:该函数可用于清算从数据库中或许从 HTML 表单中取回的数据。
php stripcslashes()函数运用示例1:
<?php echo stripcslashes("Hello \World!"); ?>
输出:
Hello World!
php stripcslashes()函数运用示例2:
<?php echo stripcslashes("i'm \study \in \ki4.cn"); ?>
输出:
i'm study in ki4.cn
本篇文章就是关于PHP stripcslashes函数的引见,愿望对须要的朋侪有所协助!
以上就是php stripcslashes函数怎样用的细致内容,更多请关注ki4网别的相干文章!