reference/array/functions/array-diff.xml
c84024092aee02b51dd18b909af0f2ccbdd24f98
...
...
@@ -10,13 +10,12 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>array</type><methodname>array_diff</methodname>
13
-
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
14
-
<methodparam><type>array</type><parameter>array2</parameter></methodparam>
15
-
<methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam>
13
+
<methodparam><type>array</type><parameter>array</parameter></methodparam>
14
+
<methodparam rep="repeat"><type>array</type><parameter>arrays</parameter></methodparam>
16
15
</methodsynopsis>
17
16
<para>
18
-
Compares <parameter>array1</parameter> against one or more other arrays and
19
-
returns the values in <parameter>array1</parameter> that are not present in
17
+
Compares <parameter>array</parameter> against one or more other arrays and
18
+
returns the values in <parameter>array</parameter> that are not present in
20
19
any of the other arrays.
21
20
</para>
22
21
</refsect1>
...
...
@@ -26,7 +25,7 @@
26
25
<para>
27
26
<variablelist>
28
27
<varlistentry>
29
-
<term><parameter>array1</parameter></term>
28
+
<term><parameter>array</parameter></term>
30
29
<listitem>
31
30
<para>
32
31
The array to compare from
...
...
@@ -34,18 +33,10 @@
34
33
</listitem>
35
34
</varlistentry>
36
35
<varlistentry>
37
-
<term><parameter>array2</parameter></term>
36
+
<term><parameter>arrays</parameter></term>
38
37
<listitem>
39
38
<para>
40
-
An array to compare against
41
-
</para>
42
-
</listitem>
43
-
</varlistentry>
44
-
<varlistentry>
45
-
<term><parameter>...</parameter></term>
46
-
<listitem>
47
-
<para>
48
-
More arrays to compare against
39
+
Arrays to compare against
49
40
</para>
50
41
</listitem>
51
42
</varlistentry>
...
...
@@ -57,8 +48,27 @@
57
48
&reftitle.returnvalues;
58
49
<para>
59
50
Returns an <type>array</type> containing all the entries from
60
-
<parameter>array1</parameter> that are not present in any of the other arrays.
61
-
Keys in the <parameter>array1</parameter> array are preserved.
51
+
<parameter>array</parameter> that are not present in any of the other arrays.
52
+
Keys in the <parameter>array</parameter> array are preserved.
53
+
</para>
54
+
</refsect1>
55
+

56
+
<refsect1 role="changelog">
57
+
&reftitle.changelog;
58
+
<para>
59
+
<informaltable>
60
+
<tgroup cols="2">
61
+
<thead>
62
+
<row>
63
+
<entry>&Version;</entry>
64
+
<entry>&Description;</entry>
65
+
</row>
66
+
</thead>
67
+
<tbody>
68
+
&array.changelog.require-only-one;
69
+
</tbody>
70
+
</tgroup>
71
+
</informaltable>
62
72
</para>
63
73
</refsect1>
64
74

65
75