note 38278 added to function.stripslashes
| From: | valyala at tut dot by | Date: | Mon, 15 Dec 2003 08:27:04 +0000 |
| Subject: | note 38278 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61967@lists.php.net to get a copy of this message | ||
Carefully! stripslashes() stprips ALL backslashes, not only before special characters (i.e. ',
", \ and 0).
For example,
<?php print('[' . stripslashes ('\\t\\e\\s\\t\\"\\\'\\\\') .
']') ?>
prints [test"'\], while I expected [\t\e\s\t"'\]
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38278
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38278&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38278&report=yes
Search -- http://master.php.net/manage/user-notes.php