note 21578 added to function.addcslashes
| From: | natNOSPAM at noworrie dot NO_SPAM dot com | Date: | Fri, 17 May 2002 20:22:37 +0000 |
| Subject: | note 21578 added to function.addcslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30770@lists.php.net to get a copy of this message | ||
I have found the following to be much more appropriate code example:
$escaped = addcslashes($not_escaped, "\0..\37!@\@\177..\377");
This will protect original, innocent backslashes from stripcslashes.
--
http://www.php.net/manual/en/function.addcslashes.php
http://master.php.net/manage/user-notes.php?action=edit+21578
http://master.php.net/manage/user-notes.php?action=delete+21578
http://master.php.net/manage/user-notes.php?action=reject+21578