From adc86633bc0684d8d89605ea96028d79ca22cde2 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 24 Jul 2003 05:18:41 +0000 Subject: [PATCH] Remove note about being buggy in 3.0.6-8, and use of the binary safe entity. Also a grammar fix, and see also substr_replace(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@135763 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-replace.xml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index e3bc489824..744b15c56e 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -26,8 +26,8 @@ preg_replace. - In PHP 4.0.5 and later, every parameter to - str_replace can be an array. + As of PHP 4.0.5, every parameter in str_replace + can be an array. @@ -88,15 +88,9 @@ echo $count; // 2 - - This function is binary safe. - - - - str_replace was added in PHP 3.0.6, but was - buggy up until PHP 3.0.8. - - + + ¬e.bin-safe; + As of PHP 5.0.0 the number of matched and replaced @@ -108,6 +102,7 @@ echo $count; // 2 See also str_ireplace, + substr_replace, ereg_replace, preg_replace, and strtr.