函式:AddSlashes()


AddSlashes

字串加入斜线。

语法: string addslashes(string str);

传回值: 字串

函式种类: 资料处理

内容说明

本函式使需要让资料库处理的字串,引号的部份加上斜线,以供资料库查询 (query) 能顺利运作。这些会被改的字元包括单引号 (')、双引号 (")、反斜线 backslash (\) 以及空字元 NUL (the null byte)。

参考

stripslashes()  htmlspecialchars()  quotemeta()  


[ 下一页 ]