Easy Tutorial
❮ Func Mysqli Thread Id Func Filesystem Umask ❯

PHP is_dir() Function



Definition and Usage

The is_dir() function checks if the specified file is a directory.

The function returns TRUE if the directory exists.

Syntax

Parameter Description
file Required. Specifies the file to check.

Tips and Notes

Note: The result of this function is cached. Use clearstatcache() to clear the cache.


Example

The above code will output:


❮ Func Mysqli Thread Id Func Filesystem Umask ❯