PHP is_readable() Function

The is_readable() function checks whether the specified file is readable.This function returns TRUE if the file is readable.

bool is_readable ( string $filename )

Tells whether a file exists and is readable.

Example -

ParameterDescription
fileRequired. Specifies the open file to check

Note -

The result of this function are cached. Use clearstatcache() to clear the cache.