Re: preg_replace with \'s and "'s
| From: | Rasmus Lerdorf | Date: | Sat, 12 Aug 2000 20:05:43 +0000 |
| Subject: | Re: preg_replace with \'s and "'s | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11479@lists.php.net to get a copy of this message | ||
> I need to search a string for single and double quotation marks, and
> replace them with escaped versions (\", \'), because I sending the string
> as a value to a MySql database (and it doesn't accept non-escaped characters).
AddSlashes() does exactly this.
-Rasmus