ID: 13319
Updated by: swm
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Regexps related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

You are correct in saying that the second argument is a
'replacement string', not a number. The documentation
is very clear about this.

Previous Comments:
------------------------------------------------------------------------

[2001-09-15 12:13:10] [EMAIL PROTECTED]

When using ereg_replace() with a numeric 2nd argument (replacement string), this 
argument is treated as an empty string.
ereg_replace('4', 3, '124') produces '12' instead of '123'.


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13319&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to