0

AddSlashes字符串加入斜线

Posted in PHP at 十二月 12th, 2007 / No Comments »

AddSlashes
字符串加入斜线。

语法: string addslashes(string str);

返回值: 字符串

函数种类: 资料处理

内容说明

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

参考

Published in PHP
Tags:

No Responses to “AddSlashes字符串加入斜线”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)