PHP function is_readable()

Availability in PHP 4.0

Tells whether a file exists and is readable

Parameters

Parameter Data type Default value Note
$filename string not Path to the file.

Return values

bool

true if the file or directory specified by filename exists and is readable, false otherwise.

Other resources

Official is-readable documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.