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

From: Date: Mon, 26 Oct 1998 17:15:13 +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-2031@lists.php.net to get a copy of this message
ID: 876 Updated by: rasmus Reported By: peter.lerner@bayreuth.baynet.de Status: Closed Bug Type: Misbehaving function Assigned To: Comments: These functions do not modify the argument string. They return the new string. To make the above work, use: $string = eregi_replace("!"," ",$string); Note though that if you just want to change a single character you are better off using strtr(). 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 (#2031) next »