英[ɪgˈzɪst]   美[ɪɡˈzɪst]   

##vi.Existence; survive; live; continue to exist

Third person singular: exists Present participle: existing Past tense: existed Past participle: existed

php file_exists() function syntax

Function:Check whether the file or directory exists.

Syntax: file_exists(path)

Parameters:

Parameter Description
path Required. Specifies the path to be checked.

Description: Returns true if the specified file or directory exists, otherwise returns false.

php file_exists() function example

<?php
$file = file_exists("./test.txt");
echo $file;
?>