note 97774 deleted from function.file-exists by cmb
| From: | cmb@php.net | Date: | Sun, 29 Sep 2019 07:16:07 +0000 |
| Subject: | note 97774 deleted from function.file-exists by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212385@lists.php.net to get a copy of this message | ||
Note Submitter: hex
----
If you simply want to check that some file (not directory) exists, and concerned about performance,
try is_file() instead.
I timed is_file and file_exists, it seems like is_file() is almost 2x faster when a file exists and
about the same when it doesn't.