Re: addslashes
| From: | Nick Wilson | Date: | Fri, 21 Jun 2002 23:38:38 +0000 |
| Subject: | Re: addslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103350@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* and then OMAR IGNACIO CAMPOS GALAN declared....
> When I use addslashes to add a back slash to a single quote, it returns 3
> back slashes (example: 'it\\\'s'. Is that correct? Am I doing something
> wrong?
You're doing something wrong ;-)
I'll bet that what's happening is that you are not using stripslashes()
when you re-use the var and that is causing the multiple slashes.
If you don't get what what I just said, post your code.... and i'll have
a bash at it..
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE9E7j9HpvrrTa6L5oRAls4AKCUHWuBR4Mc/1AOeTrK78u7hprmIACgmkp4
4nGyjyvNNU4ygKueRz9rF8U=
=A5+j
-----END PGP SIGNATURE-----