note 103884 deleted from function.opendir by thiago
| From: | thiago@php.net | Date: | Tue, 29 Nov 2011 13:07:53 +0000 |
| Subject: | note 103884 deleted from function.opendir by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184768@lists.php.net to get a copy of this message | ||
Note Submitter: bimal at sanjaal dot com
----
The opendir() does not allow the list to be sorted.
It (at least under linux) shows the list of files according to the timestamp when they were created.
It returns a resource.
While, scandir() can do the sorting, but returns an array.
Unfortunately, opendir() does not take additional parameters to control the sorting.