1--TEST--
2Test array_search()/in_array()
3--FILE--
4<?php
5
6$arr1 = array('a','b','c');
7$arr2 = array();
8$arr3 = array('c','key'=>'d');
9$arr4 = array("a\0b"=>'e','key'=>'d', 'f');
10
11var_dump(in_array(123, $arr2));
12var_dump(in_array(123, $arr1));
13var_dump(array_search(123, $arr1));
14var_dump(in_array('a', $arr1));
15var_dump(array_search('a', $arr1));
16var_dump(array_search('e', $arr4));
17var_dump(array_search('d', $arr4));
18
19echo "Done\n";
20?>
21--EXPECTF--
22bool(false)
23bool(false)
24bool(false)
25bool(true)
26int(0)
27string(3) "a%0b"
28string(3) "key"
29Done
30