diff --git a/reference/array/functions/array-diff-uassoc.xml b/reference/array/functions/array-diff-uassoc.xml index fbdc08bda2..7ae3400885 100644 --- a/reference/array/functions/array-diff-uassoc.xml +++ b/reference/array/functions/array-diff-uassoc.xml @@ -1,5 +1,5 @@ - + @@ -23,7 +23,10 @@ containing all the values from array1 that are not present in any of the other arguments. Note that the keys are used in the comparison unlike - array_diff. This comparison is done by a user supplied callback function. + array_diff. + + + This comparison is done by a user supplied callback function. It must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the @@ -47,6 +50,7 @@ function key_compare_func($a, $b) $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red"); $result = array_diff_uassoc($array1, $array2, "key_compare_func"); +print_r($result); ?> ]]>