Is a directory : is_dir « File Directory « PHP






Is a directory

 
<?
if ( is_dir( "/tmp" ) ) {
  print "/tmp is a directory";
}
?>
  
  








Related examples in the same category

1.is_dir() function verifies that the file is a directory
2.Creating a Function That Performs Multiple File Tests
3.Working with Directories