is_dir() function verifies that the file is a directory : is_dir « File Directory « PHP






is_dir() function verifies that the file is a directory

 
bool is_dir (string filename)

<?
    $isdir = is_dir("index.html"); // returns false
    
    $isdir = is_dir("book"); // returns true
?>
  
  








Related examples in the same category

1.Creating a Function That Performs Multiple File Tests
2.Is a directory
3.Working with Directories