Bug #13952 Updated: str_replace, ereg_replace produce no result when matching char is first
ID: 13952
Updated by: sander
Reported By: o.zellmann@eu.modine.com
Old Status: Open
Status: Bogus
Bug Type: Strings related
Operating System: Win 2000 5.00.2195
PHP Version: 4.0.6
New Comment:
Works fine for me on Win2K using PHP-4.0.6. I can't imagine this is a bug.
Please note that ? and + are considered as special characters by ereg_replace. See
www.php.net/ereg_replace for more info.
Previous Comments:
------------------------------------------------------------------------
[2001-11-06 07:41:36] o.zellmann@eu.modine.com
<?php
$str="?++";
$str=str_replace("?","+",$str);
echo $str;
?>
output in browser:
?++
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13952&edit=1
Thread (2 messages)