reference/array/functions/array-udiff-assoc.xml
56509d07ae636f076057f55bbb2572ab7b7a39eb
...
...
@@ -9,9 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>array_udiff_assoc</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>
...
...
@@ -31,7 +30,7 @@
31
30
<para>
32
31
<variablelist>
33
32
<varlistentry>
34
-
<term><parameter>array1</parameter></term>
33
+
<term><parameter>array</parameter></term>
35
34
<listitem>
36
35
<para>
37
36
The first array.
...
...
@@ -39,20 +38,18 @@
39
38
</listitem>
40
39
</varlistentry>
41
40
<varlistentry>
42
-
<term><parameter>array2</parameter></term>
41
+
<term><parameter>arrays</parameter></term>
43
42
<listitem>
44
43
<para>
45
-
The second array.
44
+
Arrays to compare against.
46
45
</para>
47
46
</listitem>
48
47
</varlistentry>
49
48
<varlistentry>
50
49
<term><parameter>value_compare_func</parameter></term>
51
50
<listitem>
52
-
<para>
53
-
&return.callbacksort;
54
-
</para>
55
-
&callback.cmp;
51
+
&sort.callback.description;
52
+
&sort.callback.description.presort;
56
53
</listitem>
57
54
</varlistentry>
58
55
</variablelist>
...
...
@@ -62,7 +59,7 @@
62
59
&reftitle.returnvalues;
63
60
<para>
64
61
<function>array_udiff_assoc</function> returns an <type>array</type>
65
-
containing all the values from <parameter>array1</parameter>
62
+
containing all the values from <parameter>array</parameter>
66
63
that are not present in any of the other arguments.
67
64
Note that the keys are used in the comparison unlike
68
65
<function>array_diff</function> and <function>array_udiff</function>.
...
...
@@ -82,7 +79,7 @@
82
79
<?php
83
80
class cr {
84
81
private $priv_member;
85
-
function cr($val)
82
+
function __construct($val)
86
83
{
87
84
$this->priv_member = $val;
88
85
}
89
86