reference/array/functions/array-replace.xml
fea4357a0ced6a776a2db2ef0d4c09c39ad41ae1
...
...
@@ -9,12 +9,12 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>array_replace</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</function> replaces the values of
17
-
<parameter>array1</parameter> with values having the same keys in each of the following
17
+
<parameter>array</parameter> with values having the same keys in each of 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.
...
...
@@ -32,7 +32,7 @@
32
32
<para>
33
33
<variablelist>
34
34
<varlistentry>
35
-
<term><parameter>array1</parameter></term>
35
+
<term><parameter>array</parameter></term>
36
36
<listitem>
37
37
<para>
38
38
The array in which elements are replaced.
...
...
@@ -40,7 +40,7 @@
40
40
</listitem>
41
41
</varlistentry>
42
42
<varlistentry>
43
-
<term><parameter>...</parameter></term>
43
+
<term><parameter>replacements</parameter></term>
44
44
<listitem>
45
45
<para>
46
46
Arrays from which elements will be extracted.
...
...
@@ -54,7 +54,7 @@
54
54
<refsect1 role="returnvalues">
55
55
&reftitle.returnvalues;
56
56
<para>
57
-
Returns an <type>array</type>, or &null; if an error occurs.
57
+
Returns an <type>array</type>.
58
58
</para>
59
59
</refsect1>
60
60
<refsect1 role="examples">
...
...
@@ -100,7 +100,6 @@ Array
100
100
</para>
101
101
</refsect1>
102
102
</refentry>
103
-

104
103
<!-- Keep this comment at the end of the file
105
104
Local variables:
106
105
mode: sgml
107
106