Bug #876 Updated: ereg_replace() and eregi_replace() don't do anything

From: Date: Mon, 26 Oct 1998 17:15:55 +0000
Subject: Bug #876 Updated: ereg_replace() and eregi_replace() don't do anything
Groups: php.dev 
Request: Send a blank email to php-dev+get-2032@lists.php.net to get a copy of this message
ID: 876 User Update by: peter.lerner@bayreuth.baynet.de Status: Closed Bug Type: Misbehaving function Description: ereg_replace() and eregi_replace() don't do anything the following code snippet ... echo "string = \"" . $string . "\"<br>\n"; eregi_replace("!", " ", $string); echo "string = \"" . $string . "\"<br>\n"; ... yields this result: string = "con ! air" string = "con ! air" did i miss something, or is this bad behaviour? the "!" should have been replaced by <space>. same with ereg_replace(). ups ... should read doku more thoroughly. must assign ereg_replace() result. ;-) sorry. Full Bug description available at: http://ca.php.net/bugs.php3?id=876 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2032) next »