is_dir
is_dir
(PHP 4, PHP 5, PHP 7)
is_dir — Tells whether the filename is a directory
Description
bool is_dir ( string $filename )
Tells whether the given filename is a directory.
Parameters
-
filename
-
Path to the file. If
filename
is a relative filename, it will be checked relative to the current working directory. Iffilename
is a symbolic or hard link then the link will be resolved and checked. I