PHP is_readable() Function

Check whether the specified filename is readable

Definition and Usage

The is_readable() function checks whether the specified filename is readable.

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

Syntax

is_readable(file)

Parameter Values

Parameter Description
file Required. Specifies the path to the file to check

Technical Details

Return Value: TRUE if the file is readable, FALSE and an E_WARNING otherwise
PHP Version: 4.0+

❮ PHP Filesystem Reference