Escaping double quotes?
| From: | Ben Cheng | Date: | Sun, 25 Feb 2001 06:46:30 +0000 |
| Subject: | Escaping double quotes? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41548@lists.php.net to get a copy of this message | ||
How do you escape double quotes? I have the following which is supposed to make any " in a string into \" but it doesn't seem to work. What's wrong with it?
$tmp_string = str_replace ("\"", "\\\"", $tmp_string);
-Ben