1--TEST--
2Test array_diff_uassoc() function : usage variation - Passing boolean indexed array
3--FILE--
4<?php
5echo "*** Testing array_diff_uassoc() : 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
11echo "\n-- Testing array_diff_key() function with float indexed array --\n";
12var_dump( array_diff_uassoc($input_array, $boolean_indx_array, "strcasecmp") );
13var_dump( array_diff_uassoc($boolean_indx_array, $input_array, "strcasecmp") );
14
15?>
16--EXPECT--
17*** Testing array_diff_uassoc() : usage variation ***
18
19-- Testing array_diff_key() function with float indexed array --
20array(5) {
21  [0]=>
22  string(1) "0"
23  [1]=>
24  string(1) "1"
25  [-10]=>
26  string(3) "-10"
27  ["true"]=>
28  int(1)
29  ["false"]=>
30  int(0)
31}
32array(2) {
33  [1]=>
34  string(5) "boolT"
35  [0]=>
36  string(5) "boolF"
37}
38