Re: ereg_replace and quotation marks
| From: | sven | Date: | Wed, 25 Jun 2003 11:10:56 +0000 |
| Subject: | Re: ereg_replace and quotation marks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152740@lists.php.net to get a copy of this message | ||
maybe stripslashes() can solve your problem?
Paul Nowosielski wrote:
> I'm trying to strip quotation marks out of user from input but it
> doesn't seem to work correctly.
>
> $string=ereg_replace("\"","",$string);
>
> I get a \ mark after I run a quote through the form. When I want the
> quote turned to nothing.
>
> Any suggestions??
>
> Paul