is_dir

(PHP 3, PHP 4 )

is_dir -- Tells whether the filename is a directory

Popis

bool is_dir (string filename)

Returns true if the filename exists and is a directory.

The results of this function are cached. See clearstatcache() for more details.

Viz takΘ is_file() and is_link().