ID: 9325
Updated by: stas
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Regular Expressions
Assigned To: 
Comments:

works for me in latest version. You probably have an old
one. BTW, you have bug in your code - preg_replace shoudl
take string, not newstring.

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

[2001-02-18 13:14:47] [EMAIL PROTECTED]
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

;-(


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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9325&edit=2


-- 
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