note 12510 rejected from function.str-replace by philip

From: Date: Mon, 04 Feb 2002 12:46:40 +0000
Subject: note 12510 rejected from function.str-replace by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26213@lists.php.net to get a copy of this message
Whats wrong? $string has this value: <STRONG unselectable="off">Hello</STRONG> $parse_out=" unselectable=".chr(34)."off".chr(34); neither $string=ereg_replace($parse_out, "", $string); nor $string=str_replace($parse_out, "", $string); Seems to work. If I set $parse_out to: $parse_out="Hello" I get the correct result: <STRONG unselectable="off"></STRONG> Any ideas?

« previous php.notes (#26213) next »