Bug #13952 Updated: str_replace, ereg_replace produce no result when matching char is first
| From: | sander@php.net | Date: | Sat, 10 Nov 2001 17:04:50 +0000 |
| Subject: | Bug #13952 Updated: str_replace, ereg_replace produce no result when matching char is first | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69996@lists.php.net to get a copy of this message | ||
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