addslashes, stripslashes
| From: | Scott Aikin | Date: | Tue, 27 Nov 2001 00:47:35 +0000 |
| Subject: | addslashes, stripslashes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75742@lists.php.net to get a copy of this message | ||
I've come across a strange problem working backwards with stripslashes after running
addslashes. I take a string like:
"\t\4"
and run it through addslashes, the result is:
\\t\\4
After grabbing this data from the database and running 'stripslashes', the data comes out
as:
"\t"
without the \4, for some reason stripslashes always removes any combination of \ and a number. Does
anybody know a way around this or can maybe provide some insight about why this is happening?
Thank you!!!
- Scott