is_file

It checks whether the filename is a regular file

Example

<?php

echo is_file(‘test.txt’)?”Yes”:”No”;

?>

Output

Yes