1--TEST--
2Test array_keys() function (variation - 4)
3--FILE--
4<?php
5
6echo "*** Testing array_keys() on all the types other than arrays ***\n";
7$types_arr = array(
8  TRUE => TRUE,
9  FALSE => FALSE,
10  1 => 1,
11  0 => 0,
12  -1 => -1,
13  "1" => "1",
14  "0" => "0",
15  "-1" => "-1",
16  NULL,
17  array(),
18  "php" => "php",
19  "" => ""
20);
21$values = array(TRUE, FALSE, 1, 0, -1, "1", "0", "-1",  NULL, array(), "php", "");
22foreach ($values as $value){
23  var_dump(array_keys($types_arr, $value, TRUE));
24}
25
26echo "Done\n";
27?>
28--EXPECT--
29*** Testing array_keys() on all the types other than arrays ***
30array(0) {
31}
32array(0) {
33}
34array(0) {
35}
36array(0) {
37}
38array(0) {
39}
40array(1) {
41  [0]=>
42  int(1)
43}
44array(1) {
45  [0]=>
46  int(0)
47}
48array(1) {
49  [0]=>
50  int(-1)
51}
52array(1) {
53  [0]=>
54  int(2)
55}
56array(1) {
57  [0]=>
58  int(3)
59}
60array(1) {
61  [0]=>
62  string(3) "php"
63}
64array(1) {
65  [0]=>
66  string(0) ""
67}
68Done
69