From 8c10042cbbc95b1279ba670d0ff59d11f0b799a3 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Fri, 11 Mar 2005 13:56:44 +0000 Subject: [PATCH] * Add notice about "what if replacement is array while search is not?" git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181868 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-replace.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index c91baab62f..76f8e87900 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -56,9 +56,10 @@ replace has fewer values than search, then an empty string is used for the rest of replacement values. If search - is an array and replace is a string; then + is an array and replace is a string, then this replacement string is used for every value of - search. + search. The converse would not make sense, + though.