Easy Tutorial
❮ Func Misc Unpack Php Syntax ❯

PHP file_exists() Function



Definition and Usage

The file_exists() function checks whether a file or directory exists.

It returns TRUE if the specified file or directory exists, otherwise it returns FALSE.

Syntax

Parameter Description
path Required. Specifies the path to check.

Example

The above code will output:


❮ Func Misc Unpack Php Syntax ❯