techtonik Fri Mar 11 08:56:47 2005 EDT
Modified files:
/phpdoc/en/reference/strings/functions str-replace.xml
Log:
* Add notice about "what if replacement is array while search is not?"
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/str-replace.xml?r1=1.17&r2=1.18&ty=u
Index: phpdoc/en/reference/strings/functions/str-replace.xml
diff -u phpdoc/en/reference/strings/functions/str-replace.xml:1.17
phpdoc/en/reference/strings/functions/str-replace.xml:1.18
--- phpdoc/en/reference/strings/functions/str-replace.xml:1.17 Wed Nov 10
03:30:46 2004
+++ phpdoc/en/reference/strings/functions/str-replace.xml Fri Mar 11
08:56:44 2005
@@ -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>