Escaping a double-quote problem

From: Date: Fri, 01 Feb 2002 13:32:34 +0000
Subject: Escaping a double-quote problem
Groups: php.general 
Request: Send a blank email to php-general+get-83123@lists.php.net to get a copy of this message
Any idea why when I print the value of $text, I get a backslash in front of the result? $text=preg_replace("/\"/", """, $text); $text=preg_replace("/\"/", "A", $text); $text=str_replace("\"", "A", $text); Contrary: $text=preg_replace("/&/", "&", $text); works quite well. cheerz

« previous php.general (#83123) next »