1--TEST--
2Test array_diff_ukey() function : usage variation - Passing boolean indexed array
3--FILE--
4<?php
5echo "*** Testing array_diff_ukey() : usage variation ***\n";
6
7// Initialise function arguments not being substituted (if any)
8$input_array = array(0 => '0', 1 => '1', -10 => '-10', 'true' => 1, 'false' => 0);
9$boolean_indx_array = array(true => 'boolt', false => 'boolf', TRUE => 'boolT', FALSE => 'boolF');
10
11function key_compare_func($key1, $key2)
12{
13  return strcasecmp($key1, $key2);
14}
15
16echo "\n-- Testing array_diff_ukey() function with boolean indexed array --\n";
17
18var_dump( array_diff_ukey($boolean_indx_array, $input_array, 'key_compare_func') );
19var_dump( array_diff_ukey($input_array, $boolean_indx_array, 'key_compare_func') );
20
21?>
22--EXPECT--
23*** Testing array_diff_ukey() : usage variation ***
24
25-- Testing array_diff_ukey() function with boolean indexed array --
26array(0) {
27}
28array(3) {
29  [-10]=>
30  string(3) "-10"
31  ["true"]=>
32  int(1)
33  ["false"]=>
34  int(0)
35}
36