--TEST-- Test array_search() function : usage variations - haystack as resource/multi dimensional array --FILE-- TRUE, "b"=> TRUE, array("c"=> TRUE, "d"=>TRUE) ) ) ); //matching string having integer in beginning, result:true in loose type check var_dump( array_search('123abc', array(123)) ); var_dump( array_search('123abc', array(123), TRUE) ); // false in strict mode echo "Done\n"; ?> --EXPECTF-- *** Testing resource type with array_search() *** int(0) bool(false) *** Testing miscelleneos inputs with array_search() *** int(0) bool(false) int(0) int(0) bool(true) int(0) bool(false) bool(false) int(0) bool(false) Done