is_file()
is_file - Tells whether the filename is a regular file
Syntax
bool is_file (
string $filename)
Arguments
- filename - Path to the file.
Description
Tells whether the given file is a regular file.
Version
PHP 4, 5
Return value
Returns TRUE if the filename exists and is a regular file, FALSE otherwise.