note 101094 deleted from function.scandir by cmb
| From: | cmb@php.net | Date: | Sun, 17 Nov 2019 09:04:07 +0000 |
| Subject: | note 101094 deleted from function.scandir by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213114@lists.php.net to get a copy of this message | ||
Note Submitter: robin leffmann
----
Note that scandir() will enforce alphanumerical sorting on the array it returns. If you wish to
reduce CPU overhead by avoiding the sorting, or if you wish to obtain "natural filesystem
order" - that is, the order in which the files are found while traversing the filesystem
(usually the order in which they were written to the disk) - you need to go back to the PHP4
equivalent of opendir() + readdir().