file_exists

PHP 4, PHP 5, PHP 7, PHP 8
file_exists - Checks whether a file or directory exists
Manual
Code Examples

Example #1 Testing whether a file exists

PHP Version: