Lines Matching refs:array_search
2 Test array_search() function : usage variations - haystack as resource/multi dimensional array
6 echo "*** Testing resource type with array_search() ***\n";
17 var_dump( array_search($file_handle, $resources, true) );
19 var_dump( array_search((int)$dir_handle, $resources, true) );
22 echo "\n*** Testing miscelleneos inputs with array_search() ***\n";
24 var_dump( array_search("Good", array(0,"hello")) );
26 var_dump( array_search("Good", array(0,"hello"), TRUE) );
29 var_dump( array_search(0, array("this")) );
31 var_dump( array_search(0, array("this")),TRUE );
34 var_dump( array_search("this", array(0)) );
36 var_dump( array_search("this", array(0), TRUE) );
39 var_dump( array_search(FALSE,
47 var_dump( array_search('123abc', array(123)) );
48 var_dump( array_search('123abc', array(123), TRUE) ); // false in strict mode
53 *** Testing resource type with array_search() ***
57 *** Testing miscelleneos inputs with array_search() ***