开发者

Is there a reversed function for mysql_escape_string?

So that I can change string lik开发者_开发技巧e I\'ll go back to I'll go


stripslashes()

Un-quotes a quoted string.

ex.:

$string = "This isn't good";

$string = mysql_escape_string($string);

echo "$string";

produces: This isn\'t good

$string = stripslashes($string);

echo "$string";

produces : This isn't good


stripslashes()


No.

It's not really required:

$b=mysql_escape_string($a);

$a still contains the unescaped string.

C.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜