diff --git a/reference/array/functions/array-combine.xml b/reference/array/functions/array-combine.xml index 6c5330b31fdd..9a35e3d01b48 100644 --- a/reference/array/functions/array-combine.xml +++ b/reference/array/functions/array-combine.xml @@ -59,11 +59,36 @@ &reftitle.errors; - Throws E_WARNING if the number of elements in + As of PHP 8.0.0, a ValueError is thrown if the number of elements in keys and values does not match. + Prior to PHP 8.0.0, a E_WARNING was emitted instead. + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + array_combine will now throw a + ValueError if the number of elements + for each array is not equal. + + + + + + &reftitle.examples;