reference/array/functions/array-udiff.xml
56509d07ae636f076057f55bbb2572ab7b7a39eb
...
...
@@ -9,9 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>array_udiff</methodname>
12
-
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
13
-
<methodparam><type>array</type><parameter>array2</parameter></methodparam>
14
-
<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>arrays</parameter></methodparam>
15
14
<methodparam><type>callable</type><parameter>value_compare_func</parameter></methodparam>
16
15
</methodsynopsis>
17
16
<para>
...
...
@@ -25,7 +24,7 @@
25
24
<para>
26
25
<variablelist>
27
26
<varlistentry>
28
-
<term><parameter>array1</parameter></term>
27
+
<term><parameter>array</parameter></term>
29
28
<listitem>
30
29
<para>
31
30
The first array.
...
...
@@ -33,23 +32,18 @@
33
32
</listitem>
34
33
</varlistentry>
35
34
<varlistentry>
36
-
<term><parameter>array2</parameter></term>
35
+
<term><parameter>arrays</parameter></term>
37
36
<listitem>
38
37
<para>
39
-
The second array.
38
+
Arrays to compare against.
40
39
</para>
41
40
</listitem>
42
41
</varlistentry>
43
42
<varlistentry>
44
43
<term><parameter>value_compare_func</parameter></term>
45
44
<listitem>
46
-
<para>
47
-
The callback comparison function.
48
-
</para>
49
-
<para>
50
-
&return.callbacksort;
51
-
</para>
52
-
&callback.cmp;
45
+
&sort.callback.description;
46
+
&sort.callback.description.presort;
53
47
</listitem>
54
48
</varlistentry>
55
49
</variablelist>
...
...
@@ -58,7 +52,7 @@
58
52
<refsect1 role="returnvalues">
59
53
&reftitle.returnvalues;
60
54
<para>
61
-
Returns an array containing all the values of <parameter>array1</parameter>
55
+
Returns an array containing all the values of <parameter>array</parameter>
62
56
that are not present in any of the other arguments.
63
57
</para>
64
58
</refsect1>
...
...
@@ -71,12 +65,12 @@
71
65
<![CDATA[
72
66
<?php
73
67
// Arrays to compare
74
-
$array1 = array(new stdclass, new stdclass,
75
-
new stdclass, new stdclass,
68
+
$array1 = array(new stdClass, new stdClass,
69
+
new stdClass, new stdClass,
76
70
);
77
71

78
72
$array2 = array(
79
-
new stdclass, new stdclass,
73
+
new stdClass, new stdClass,
80
74
);
81
75

82
76
// Set some properties for each object
83
77