derick Wed Dec 3 09:40:56 2003 EDT
Modified files:
/phpdoc/en/reference/pcre/functions preg-replace.xml
Log:
- Clarify the use of "array" here. (Bug #26508)
Index: phpdoc/en/reference/pcre/functions/preg-replace.xml
diff -u phpdoc/en/reference/pcre/functions/preg-replace.xml:1.9
phpdoc/en/reference/pcre/functions/preg-replace.xml:1.10
--- phpdoc/en/reference/pcre/functions/preg-replace.xml:1.9 Sat Aug 16 14:59:12
2003
+++ phpdoc/en/reference/pcre/functions/preg-replace.xml Wed Dec 3 09:40:56 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
<refentry id="function.preg-replace">
<refnamediv>
@@ -76,12 +76,12 @@
</para>
<para>
Every parameter to <function>preg_replace</function> (except
- <parameter>limit</parameter>) can be an array. When using arrays with
- <parameter>pattern</parameter> and <parameter>replacement</parameter>,
- the keys are processed in the order they appear in the array. This is
- <emphasis>not necessarily</emphasis> the same as the numerical index
- order. If you use indexes to identify which
- <parameter>pattern</parameter> should be replaced by which
+ <parameter>limit</parameter>) can be an unidimensional array.
+ When using arrays with <parameter>pattern</parameter> and
+ <parameter>replacement</parameter>, the keys are processed in the order
+ they appear in the array. This is <emphasis>not necessarily</emphasis>
+ the same as the numerical index order. If you use indexes to identify
+ which <parameter>pattern</parameter> should be replaced by which
<parameter>replacement</parameter>, you should perform a
<function>ksort</function> on each array prior to calling
<function>preg_replace</function>.