1--TEST--
2Test array_diff_key() function : usage variation - Passing integer indexed array
3--FILE--
4<?php
5echo "*** Testing array_diff_key() : usage variation ***\n";
6
7// Initialise function arguments not being substituted (if any)
8$input_array = array(-07 => '-07', 0xA => '0xA');
9
10$input_arrays = array(
11      'decimal indexed' => array(10 => '10', '-17' => '-17'),
12      'octal indexed' => array(-011 => '-011', 012 => '012'),
13      'hexa  indexed' => array(0x12 => '0x12', -0x7 => '-0x7', ),
14);
15
16// loop through each element of the array for arr1
17foreach($input_arrays as $key =>$value) {
18      echo "\n--$key--\n";
19      var_dump( array_diff_key($input_array, $value) );
20      var_dump( array_diff_key($value, $input_array) );
21}
22?>
23--EXPECT--
24*** Testing array_diff_key() : usage variation ***
25
26--decimal indexed--
27array(1) {
28  [-7]=>
29  string(3) "-07"
30}
31array(1) {
32  [-17]=>
33  string(3) "-17"
34}
35
36--octal indexed--
37array(1) {
38  [-7]=>
39  string(3) "-07"
40}
41array(1) {
42  [-9]=>
43  string(4) "-011"
44}
45
46--hexa  indexed--
47array(1) {
48  [10]=>
49  string(3) "0xA"
50}
51array(1) {
52  [18]=>
53  string(4) "0x12"
54}
55