[PHP-DEV] Bug #876 Updated: ereg_replace() and eregi_replace() don't do anything From: Bug Database (php-dev <email protected>)
Date: 10/26/98

ID: 876
User Update by: peter.lerner <email protected>
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 <email protected>
For help: php-dev-help <email protected>