note 98599 deleted from function.str-replace by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 12:15:44 +0000 |
| Subject: | note 98599 deleted from function.str-replace by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197111@lists.php.net to get a copy of this message | ||
Note Submitter: jpoirier at hotmail.fr
----
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