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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] Escaping double quotes? Ben Cheng
- Re: [PHP] Escaping double quotes? Joe Stump

