reference/array/functions/array-merge.xml
9e0f03ac354d797d1d16c0fcc1663e5e170f2727
...
...
@@ -9,8 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>array_merge</methodname>
12
-
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
13
-
<methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam>
12
+
<methodparam rep="repeat"><type>array</type><parameter>arrays</parameter></methodparam>
14
13
</methodsynopsis>
15
14
<para>
16
15
Merges the elements of one or more arrays together so that the values of
...
...
@@ -25,7 +24,7 @@
25
24
appended.
26
25
</para>
27
26
<para>
28
-
Values in the input array with numeric keys will be renumbered with
27
+
Values in the input arrays with numeric keys will be renumbered with
29
28
incrementing keys starting from zero in the result array.
30
29
</para>
31
30
</refsect1>
...
...
@@ -34,15 +33,7 @@
34
33
<para>
35
34
<variablelist>
36
35
<varlistentry>
37
-
<term><parameter>array1</parameter></term>
38
-
<listitem>
39
-
<para>
40
-
Initial array to merge.
41
-
</para>
42
-
</listitem>
43
-
</varlistentry>
44
-
<varlistentry>
45
-
<term><parameter>...</parameter></term>
36
+
<term><parameter>arrays</parameter></term>
46
37
<listitem>
47
38
<para>
48
39
Variable list of arrays to merge.
...
...
@@ -56,8 +47,35 @@
56
47
&reftitle.returnvalues;
57
48
<para>
58
49
Returns the resulting array.
50
+
If called without any arguments, returns an empty &array;.
59
51
</para>
60
52
</refsect1>
53
+

54
+
<refsect1 role="changelog">
55
+
&reftitle.changelog;
56
+
<para>
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>7.4.0</entry>
68
+
<entry>
69
+
This function can now be called without any parameter.
70
+
Formerly, at least one parameter has been required.
71
+
</entry>
72
+
</row>
73
+
</tbody>
74
+
</tgroup>
75
+
</informaltable>
76
+
</para>
77
+
</refsect1>
78
+

61
79
<refsect1 role="examples">
62
80
&reftitle.examples;
63
81
<para>
64
82