From 235243af5f4f3c534666a8702b6c7e5008975747 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 15 Apr 2003 03:20:22 +0000 Subject: [PATCH] Additional parameter for str_replace()/str_ireplace() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@123440 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-ireplace.xml | 10 +++++++++- reference/strings/functions/str-replace.xml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) 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,