reference/array/functions/array-combine.xml
71e3c74047f04b26aa1be51215d7129e15dc2993
...
...
@@ -51,43 +51,43 @@
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
68
<refsect1 role="changelog">
69
69
&reftitle.changelog;
70
-
<para>
71
-
<informaltable>
72
-
<tgroup cols="2">
73
-
<thead>
74
-
<row>
75
-
<entry>&Version;</entry>
76
-
<entry>&Description;</entry>
77
-
</row>
78
-
</thead>
79
-
<tbody>
80
-
<row>
81
-
<entry>5.4.0</entry>
82
-
<entry>
83
-
Previous versions issued <constant>E_WARNING</constant> and returned
84
-
&false; for empty arrays.
85
-
</entry>
86
-
</row>
87
-
</tbody>
88
-
</tgroup>
89
-
</informaltable>
90
-
</para>
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
91
</refsect1>
92
92
93
93
<refsect1 role="examples">
...
...
@@ -128,6 +128,7 @@ Array
128
128
<member><function>array_merge</function></member>
129
129
<member><function>array_walk</function></member>
130
130
<member><function>array_values</function></member>
131
+
<member><function>array_map</function></member>
131
132
</simplelist>
132
133
</para>
133
134
</refsect1>
134
135