php字符串转义函数addslashes()
函数说明:用于对特殊字符加上转义字符,返回一个字符串
返回值:一个经过转义后的字符串
例子:
$str = "what's your name?"; echo addslashes($str);//输出:what\'s your name?
posted on 2016-08-24 10:40 Lsec 阅读(335) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 Lsec Powered by .NET 8.0 on Kubernetes