note 98599 added to function.str-replace

From: Date: Fri, 25 Jun 2010 12:40:21 +0000
Subject: note 98599 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-170400@lists.php.net to get a copy of this message
I've found something interesting about the $count param: As of 5.0.0 the last parameter (count) is passed by reference (it is optional). So 2 choices : 1)passed not by reference - it's limit 2)passed by reference : the var is is_null() - all occurences are replaced the number is returned in "count", otoh if the var !is_null() -> use as limit. On version 5.3.0 the 4th parameter, count, does not work when not passed by reference. http://bugs.php.net/bug.php?id=11457 Hope this help ---- Server IP: 195.221.21.36 Probable Submitter: 91.103.40.50 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/98599 Del: integrated -- https://master.php.net/note/delete/98599/integrated Del: useless -- https://master.php.net/note/delete/98599/useless Del: bad code -- https://master.php.net/note/delete/98599/bad+code Del: spam -- https://master.php.net/note/delete/98599/spam Del: non-english -- https://master.php.net/note/delete/98599/non-english Del: in docs -- https://master.php.net/note/delete/98599/in+docs Del: other reasons-- https://master.php.net/note/delete/98599 Reject -- https://master.php.net/note/reject/98599 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170400) next »