diff --git a/reference/strings/functions/str-ireplace.xml b/reference/strings/functions/str-ireplace.xml index 6cd1d34ac1..4b5a62ba73 100644 --- a/reference/strings/functions/str-ireplace.xml +++ b/reference/strings/functions/str-ireplace.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,7 @@ mixedsearch mixedreplace mixedsubject + int&count This function returns a string or an array with all occurences of @@ -56,6 +57,13 @@ $bodytag = str_replace("%body%", "black", ""); This function is binary safe. + + + As of PHP 5.0 the number of matched and replaced + needles will be returned in + count which is passed by reference. + + See also: str_replace, diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index ce94427994..b7c395cef0 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -15,6 +15,7 @@ mixedsearch mixedreplace mixedsubject + int&count This function returns a string or an array with all occurences of @@ -66,6 +67,13 @@ $bodytag = str_replace("%body%", "black", ""); buggy up until PHP 3.0.8. + + + As of PHP 5.0 the number of matched and replaced + needles will be returned in + count which is passed by reference. + + See also str_ireplace,