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