From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.0.4pl1
PHP Bug Type: *Regular Expressions
Bug description: wrong parameter count for preg_replace
i've the following code:
<?
$string="test test test test"
$newstring=preg_replace("/test/","ok",$newstring,1);
echo $newstring;
?>
from your manual pages to preg_replace function it allow to specify a limit number of
matches. But here it reports an error: Wrong parameter count for preg_replace() in
test.php on line 3
;-(
--
Edit Bug report at: http://bugs.php.net/?id=9325&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]