2 /* Prototype : array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)
3 * Description: Returns the entries of arr1 that have keys which are not present in any of the others arguments.
4 * Source code: ext/standard/array.c
7 echo "*** Testing array_diff_ukey() : usage variation ***\n";
9 // Initialise function arguments not being substituted (if any)
10 $input_array = array(10 => '10', "" => 'empty');
12 //get an unset variable
16 $input_arrays = array(
17 'null indexed' => array(NULL => 'null 1', null => 'null 2'),
18 'undefined indexed' => array(@$undefined_var => 'undefined'),
19 'unset indexed' => array(@$unset_var => 'unset'),
22 foreach($input_arrays as $key =>$value) {
24 var_dump( array_diff_ukey($value, $input_array, 'strcasecmp') );
25 var_dump( array_diff_ukey($input_array, $value, 'strcasecmp') );