reference/array/functions/array-intersect-key.xml
c84024092aee02b51dd18b909af0f2ccbdd24f98
...
...
@@ -10,13 +10,12 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>array</type><methodname>array_intersect_key</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
17
<function>array_intersect_key</function> returns an array
19
-
containing all the entries of <parameter>array1</parameter>
18
+
containing all the entries of <parameter>array</parameter>
20
19
which have keys that are present in all the arguments.
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 with master keys to check.
...
...
@@ -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 keys against.
41
-
</para>
42
-
</listitem>
43
-
</varlistentry>
44
-
<varlistentry>
45
-
<term><parameter>...</parameter></term>
46
-
<listitem>
47
-
<para>
48
-
A variable list of arrays to compare.
39
+
Arrays to compare keys against.
49
40
</para>
50
41
</listitem>
51
42
</varlistentry>
...
...
@@ -57,11 +48,30 @@
57
48
&reftitle.returnvalues;
58
49
<para>
59
50
Returns an associative array containing all the entries of
60
-
<parameter>array1</parameter> which have keys that are present in all
51
+
<parameter>array</parameter> which have keys that are present in all
61
52
arguments.
62
53
</para>
63
54
</refsect1>
64
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>
72
+
</para>
73
+
</refsect1>
74
+

65
75
<refsect1 role="examples">
66
76
&reftitle.examples;
67
77
<para>
...
...
@@ -96,7 +106,7 @@ array(2) {
96
106
returned. Also notice that the values for the keys
97
107
<literal>'blue'</literal> and <literal>'green'</literal> differ between
98
108
the two arrays. A match still occurs because only the keys are checked.
99
-
The values returned are those of <parameter>array1</parameter>.
109
+
The values returned are those of <parameter>array</parameter>.
100
110
</para>
101
111
<para>
102
112
The two keys from the <literal>key =&gt; value</literal> pairs are
103
113