Re: Quotes issues
| From: | Brad Thomas | Date: | Sun, 18 Aug 2002 00:43:08 +0000 |
| Subject: | Re: Quotes issues | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15331@lists.php.net to get a copy of this message | ||
"R.S. Herhuth" <ronherhuth@pop.mindspring.com> wrote in message
news:3D5BF997.757C28D9@pop.mindspring.com...
>
> I need to strip off quotes both single and double from form input. This
> is what I have but it doesn't appear to be working:
>
> str_replace("\"","",$string);
> str_replace("\'","",$string);
>
> Please help.
>
> Thanks,
> Ron
I think you need to refer to addslashes() / stripslashes()
http://www.php.net/manual/en/function.addslashes.php
http://www.php.net/manual/en/function.stripslashes.php
Brad