Lines Matching refs:in_array
2 Test in_array() function : usage variations - haystack as resource/multi dimensional array
5 /* Test in_array() with haystack as resource and multidimensional arrays */
8 echo "*** Testing resource type with in_array() ***\n";
19 var_dump( in_array($file_handle, $resources, true) );
21 var_dump( in_array((int)$dir_handle, $resources, true) );
24 echo "\n*** Testing miscelleneos inputs with in_array() ***\n";
26 var_dump( in_array("Good", array(0,"hello")) );
28 var_dump( in_array("Good", array(0,"hello"), TRUE) );
31 var_dump( in_array(0, array("this")) );
33 var_dump( in_array(0, array("this")),TRUE );
36 var_dump( in_array("this", array(0)) );
38 var_dump( in_array("this", array(0), TRUE) );
41 var_dump( in_array(FALSE,
49 var_dump( in_array('123abc', array(123)) );
50 var_dump( in_array('123abc', array(123), TRUE) ); // false in strict mode
55 *** Testing resource type with in_array() ***
59 *** Testing miscelleneos inputs with in_array() ***