1--TEST--
2Test array_intersect_key() function : usage variation - Passing float 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', 10 => '10' , -10 => '-10');
9$float_indx_array = array(0.0 => '0.0', 10.5 => '10.5' , -10.5 => '-10.5', 0.5 => '0.5');
10
11echo "\n-- Testing array_intersect_key() function with float indexed array --\n";
12var_dump( array_intersect_key($input_array, $float_indx_array) );
13var_dump( array_intersect_key($float_indx_array,$input_array ) );
14?>
15--EXPECT--
16*** Testing array_intersect_key() : usage variation ***
17
18-- Testing array_intersect_key() function with float indexed array --
19array(3) {
20  [0]=>
21  string(1) "0"
22  [10]=>
23  string(2) "10"
24  [-10]=>
25  string(3) "-10"
26}
27array(3) {
28  [0]=>
29  string(3) "0.5"
30  [10]=>
31  string(4) "10.5"
32  [-10]=>
33  string(5) "-10.5"
34}
35