diff --git a/reference/array/functions/array-diff-assoc.xml b/reference/array/functions/array-diff-assoc.xml index dfe81f5670f1..10f715b6be54 100644 --- a/reference/array/functions/array-diff-assoc.xml +++ b/reference/array/functions/array-diff-assoc.xml @@ -97,7 +97,7 @@ "green", "b" => "brown", "c" => "blue", "red"); -$array2 = array("a" => "green", "yellow", "red"); +$array2 = array("a" => "green", "yellow", 1 => "red"); $result = array_diff_assoc($array1, $array2); print_r($result); ?> diff --git a/reference/array/functions/array-diff-uassoc.xml b/reference/array/functions/array-diff-uassoc.xml index 81663e5d93a3..df4c4504784e 100644 --- a/reference/array/functions/array-diff-uassoc.xml +++ b/reference/array/functions/array-diff-uassoc.xml @@ -98,7 +98,7 @@ function key_compare_func($a, $b) } $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); -$array2 = array("a" => "green", "yellow", "red"); +$array2 = array("a" => "green", "yellow", 1 => "red"); $result = array_diff_uassoc($array1, $array2, "key_compare_func"); print_r($result); ?>