* 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
This commit is contained in:
anatoly techtonik 2005-03-11 13:56:44 +00:00
parent 2a7f9c9533
commit 8c10042cbb

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.17 $ -->
<!-- $Revision: 1.18 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.str-replace">
<refnamediv>
@ -56,9 +56,10 @@
<parameter>replace</parameter> has fewer values than
<parameter>search</parameter>, then an empty string is used for
the rest of replacement values. If <parameter>search</parameter>
is an array and <parameter>replace</parameter> is a string; then
is an array and <parameter>replace</parameter> is a string, then
this replacement string is used for every value of
<parameter>search</parameter>.
<parameter>search</parameter>. The converse would not make sense,
though.
</para>
<para>
<example>