reference/array/functions/array-combine.xml
71e3c74047f04b26aa1be51215d7129e15dc2993
...
...
@@ -51,20 +51,45 @@
51
51
<refsect1 role="returnvalues">
52
52
&reftitle.returnvalues;
53
53
<para>
54
-
Returns the combined <type>array</type>, &false; if the number of elements
55
-
for each array isn't equal.
54
+
Returns the combined <type>array</type>.
56
55
</para>
57
56
</refsect1>
58
57

59
58
<refsect1 role="errors">
60
59
&reftitle.errors;
61
60
<para>
62
-
Throws <constant>E_WARNING</constant> if the number of elements in
61
+
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if the number of elements in
63
62
<parameter>keys</parameter> and <parameter>values</parameter> does not
64
63
match.
64
+
Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
65
65
</para>
66
66
</refsect1>
67
67

68
+
<refsect1 role="changelog">
69
+
&reftitle.changelog;
70
+
<informaltable>
71
+
<tgroup cols="2">
72
+
<thead>
73
+
<row>
74
+
<entry>&Version;</entry>
75
+
<entry>&Description;</entry>
76
+
</row>
77
+
</thead>
78
+
<tbody>
79
+
<row>
80
+
<entry>8.0.0</entry>
81
+
<entry>
82
+
<function>array_combine</function> will now throw a
83
+
<classname>ValueError</classname> if the number of elements
84
+
for each array is not equal;
85
+
previously this function returned &false; instead.
86
+
</entry>
87
+
</row>
88
+
</tbody>
89
+
</tgroup>
90
+
</informaltable>
91
+
</refsect1>
92
+
68
93
<refsect1 role="examples">
69
94
&reftitle.examples;
70
95
<para>
...
...
@@ -103,6 +128,7 @@ Array
103
128
<member><function>array_merge</function></member>
104
129
<member><function>array_walk</function></member>
105
130
<member><function>array_values</function></member>
131
+
<member><function>array_map</function></member>
106
132
</simplelist>
107
133
</para>
108
134
</refsect1>
109
135