|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-22 10:46 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
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 ;-(