is_file

is_file

(PHP 4, PHP 5, PHP 7)

is_fileTells whether the filename is a regular file

Description

bool is_file ( string $filename )

Tells whether the given file is a regular file.

Parameters

filename

Path to the file.

Return Values

Returns TRUE if the filename exists and is a regu