PHP function is_file()

Availability in PHP 4.0

Tells whether the filename is a regular file

Parameters

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

Return values

bool

true if the filename exists and is a regular file, false otherwise.

Other resources

Official is-file documentation

Newsletter

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