note 46020 added to function.stripslashes
| From: | php-general at lists dot php dot net | Date: | Mon, 27 Sep 2004 08:07:40 +0000 |
| Subject: | note 46020 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77422@lists.php.net to get a copy of this message | ||
Also note that this function will remove any and all slashes, including those you may want to keep.
While it correctly transforms \' into ', it will also turn a linefeed (\n) into an
"n".
Likewise, the addslashes function blindly adds slashes, whether it needs to or not. It will happily
turn \' (an already escaped ') into \\\'.
Nightmare. If you read and write strings from/to a database extensively, you are probably better of
writing your own, smart string handling function.
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46020
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46020&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46020&report=yes
Search -- http://master.php.net/manage/user-notes.php