reference/array/functions/array-replace-recursive.xml
0e6f9948fe9e5412cc5f31d0a30bcde30f9ee404
...
...
@@ -9,12 +9,12 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>array_replace_recursive</methodname>
12
-
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
13
-
<methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam>
12
+
<methodparam><type>array</type><parameter>array</parameter></methodparam>
13
+
<methodparam rep="repeat"><type>array</type><parameter>replacements</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>array_replace_recursive</function> replaces the values of
17
-
<parameter>array1</parameter> with the same values from all the following
17
+
<parameter>array</parameter> with the same values from all the following
18
18
arrays. If a key from the first array exists in the second array, its value
19
19
will be replaced by the value from the second array. If the key exists in the
20
20
second array, and not the first, it will be created in the first array.
...
...
@@ -39,7 +39,7 @@
39
39
<para>
40
40
<variablelist>
41
41
<varlistentry>
42
-
<term><parameter>array1</parameter></term>
42
+
<term><parameter>array</parameter></term>
43
43
<listitem>
44
44
<para>
45
45
The array in which elements are replaced.
...
...
@@ -47,10 +47,10 @@
47
47
</listitem>
48
48
</varlistentry>
49
49
<varlistentry>
50
-
<term><parameter>...</parameter></term>
50
+
<term><parameter>replacements</parameter></term>
51
51
<listitem>
52
52
<para>
53
-
Optional. Arrays from which elements will be extracted.
53
+
Arrays from which elements will be extracted.
54
54
</para>
55
55
</listitem>
56
56
</varlistentry>
...
...
@@ -60,7 +60,7 @@
60
60
<refsect1 role="returnvalues">
61
61
&reftitle.returnvalues;
62
62
<para>
63
-
Returns an <type>array</type>, or &null; if an error occurs.
63
+
Returns an <type>array</type>.
64
64
</para>
65
65
</refsect1>
66
66
<refsect1 role="examples">
...
...
@@ -71,7 +71,7 @@
71
71
<programlisting role="php">
72
72
<![CDATA[
73
73
<?php
74
-
$base = array('citrus' => array( "orange") , 'berries' => array("blackberry", "raspberry"), );
74
+
$base = array('citrus' => array("orange"), 'berries' => array("blackberry", "raspberry"));
75
75
$replacements = array('citrus' => array('pineapple'), 'berries' => array('blueberry'));
76
76

77
77
$basket = array_replace_recursive($base, $replacements);
...
...
@@ -164,7 +164,6 @@ Array
164
164
</para>
165
165
</refsect1>
166
166
</refentry>
167
-

168
167
<!-- Keep this comment at the end of the file
169
168
Local variables:
170
169
mode: sgml
171
170