开发者

Is there a reversed function for mysql_escape_string?

开发者 https://www.devze.com 2022-12-15 06:09 出处:网络
So that I can change string lik开发者_开发技巧e I\\\'ll go back to I\'ll gostripslashes() Un-quotes a quoted 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

精彩评论

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