Lines Matching refs:array_search
2 Test array_search() function : usage variations - haystack as resource/multi dimentional array
6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] )
12 echo "*** Testing resource type with array_search() ***\n";
23 var_dump( array_search($file_handle, $resources, true) );
25 var_dump( array_search((int)$dir_handle, $resources, true) );
28 echo "\n*** Testing miscelleneos inputs with array_search() ***\n";
30 var_dump( array_search("Good", array(0,"hello")) );
32 var_dump( array_search("Good", array(0,"hello"), TRUE) );
35 var_dump( array_search(0, array("this")) );
37 var_dump( array_search(0, array("this")),TRUE );
40 var_dump( array_search("this", array(0)) );
42 var_dump( array_search("this", array(0), TRUE) );
45 var_dump( array_search(FALSE,
53 var_dump( array_search('123abc', array(123)) );
54 var_dump( array_search('123abc', array(123), TRUE) ); // false in strict mode
59 *** Testing resource type with array_search() ***
63 *** Testing miscelleneos inputs with array_search() ***