php addslashes()函数

来源:互联网 发布:ipad免越狱软件 编辑:程序博客网 时间:2024/05/18 02:59

官方定义:addslashes() 函数返回在预定义字符之前添加反斜杠的字符串。
For example:

 $var='"hubei" is my hometown.'; echo addslashes($var); output:\"hubei\" is my hometown. 
0 0
原创粉丝点击