how do I just escape double quotes within a string?

From: Date: Tue, 13 Feb 2007 17:04:20 +0000
Subject: how do I just escape double quotes within a string?
Groups: php.general 
Request: Send a blank email to php-general+get-248810@lists.php.net to get a copy of this message
If I use add slashes, it strips everything, I just want to replace all the double quotes with slash double quote but this, of course, throws errors: str_replace(""","\"",$code); Thanks!

« previous php.general (#248810) next »