note 49226 added to function.addcslashes
| From: | phpcoder at cyberpimp dot pimpdomain dot com | Date: | Thu, 20 Jan 2005 20:35:00 +0000 |
| Subject: | note 49226 added to function.addcslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83694@lists.php.net to get a copy of this message | ||
Forgot to add something:
The only time you would likely use addcslashes() without specifying the backslash (\) character in
charlist is when you are VALIDATING (not encoding!) a data string.
(Validation ensures that all control characters and other unsafe characters are correctly encoded /
escaped, but does not alter any pre-existing escape sequences.)
You can validate a data string multiple times without fear of "double encoding". A single
decoding pass will return the original data, regardless of how many times it was validated.)
----
Manual Page -- http://www.php.net/manual/en/function.addcslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49226
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49226&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49226&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49226&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49226&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49226&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49226&report=yes
Search -- http://master.php.net/manage/user-notes.php