Regarding addcslashes
| From: | Nat Weiss | Date: | Fri, 17 May 2002 20:21:06 +0000 |
| Subject: | Regarding addcslashes | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969345646@lists.php.net to get a copy of this message | ||
PHP Doc Team ::
I believe a small change to the addclashes documentation is necessary. The
doc uses the following code example.
$escaped = addcslashes($not_escaped, "\0..\37!@\177..\377");
After extensive bug fixing, I have found the following to be much more
appropriate:
$escaped = addcslashes($not_escaped, "\0..\37!@\@\177..\377");
Because stripcslashes will annihilate any strings with original, innocent
backslashes.
-| Nat Weiss : nat@noworrie.com |-