Menu Riverview Church

IS_FILE

Tells whether the filename is a regular file

SYNTAX

is_file ( string $filename ) : bool

PARAMETERS

filename

Path to the file.

RETURN

Returns TRUE if the filename exists and is a regular file, FALSE otherwise.

Note: Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.

EXAMPLES

1

true

2

false

PHP