1--TEST--
2array_search() tests
3--FILE--
4<?php
5
6$a = array(1=>0, 2=>1, 4=>3, "a"=>"b", "c"=>"d");
7
8var_dump(array_search("a",$a));
9var_dump(array_search("0",$a, true));
10var_dump(array_search("0",$a));
11var_dump(array_search(0,$a));
12var_dump(array_search(1,$a));
13var_dump(array_search("d",$a, true));
14var_dump(array_search("d",$a));
15var_dump(array_search(-1,$a, true));
16
17echo "Done\n";
18?>
19--EXPECT--
20bool(false)
21bool(false)
22int(1)
23int(1)
24int(2)
25string(1) "c"
26string(1) "c"
27bool(false)
28Done
29