[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
Updated by: rasmus
Reported By: peter.lerner <email protected>
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 <email protected>
For help: php-dev-help <email protected>