2 Test is_dir() function: usage variations - invalid arguments
7 /* Prototype: bool is_dir ( string $dirname );
8 Description: Tells whether the dirname is a directory
9 Returns TRUE if the dirname exists and is a directory, FALSE otherwise.
12 /* Passing invalid arguments to is_dir() */
14 echo "*** Testing is_dir() with Invalid arguments: expected bool(false) ***\n";
16 /* Invalid dirnames */
28 /* loop through to test each element the above array */
29 foreach($dirnames as $dirname) {
30 var_dump( is_dir($dirname) );
34 *** Testing is_dir() with Invalid arguments: expected bool(false) ***