Lines Matching refs:in_array
2 Test in_array() function : usage variations - haystack as resource/multi dimentional array
6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
12 /* Test in_array() with haystack as resouce and multidimentional arrays */
15 echo "*** Testing resource type with in_array() ***\n";
26 var_dump( in_array($file_handle, $resources, true) );
28 var_dump( in_array((int)$dir_handle, $resources, true) );
31 echo "\n*** Testing miscelleneos inputs with in_array() ***\n";
33 var_dump( in_array("Good", array(0,"hello")) );
35 var_dump( in_array("Good", array(0,"hello"), TRUE) );
38 var_dump( in_array(0, array("this")) );
40 var_dump( in_array(0, array("this")),TRUE );
43 var_dump( in_array("this", array(0)) );
45 var_dump( in_array("this", array(0), TRUE) );
48 var_dump( in_array(FALSE,
56 var_dump( in_array('123abc', array(123)) );
57 var_dump( in_array('123abc', array(123), TRUE) ); // false in strict mode
62 *** Testing resource type with in_array() ***
66 *** Testing miscelleneos inputs with in_array() ***