1--TEST--
2basic array_diff_key test
3--FILE--
4<?php
5$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red", "");
6$array2 = array("a" => "green", "yellow", "red", TRUE);
7$array3 = array("red", "a"=>"brown", "");
8$result[] = array_diff_key($array1, $array2);
9$result[] = array_diff_key($array1, $array3);
10$result[] = array_diff_key($array2, $array3);
11$result[] = array_diff_key($array1, $array2, $array3);
12
13var_dump($result);
14
15?>
16--EXPECT--
17array(4) {
18  [0]=>
19  array(2) {
20    ["b"]=>
21    string(5) "brown"
22    ["c"]=>
23    string(4) "blue"
24  }
25  [1]=>
26  array(2) {
27    ["b"]=>
28    string(5) "brown"
29    ["c"]=>
30    string(4) "blue"
31  }
32  [2]=>
33  array(1) {
34    [2]=>
35    bool(true)
36  }
37  [3]=>
38  array(2) {
39    ["b"]=>
40    string(5) "brown"
41    ["c"]=>
42    string(4) "blue"
43  }
44}
45