is_file
pestphp/pest
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether the filename is a regular file
<?php is_file
(
string $filename
):
bool