note 103884 added to function.opendir
| From: | bimal at sanjaal dot com | Date: | Mon, 09 May 2011 06:02:00 +0000 |
| Subject: | note 103884 added to function.opendir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179554@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 117.121.234.131
----
Manual Page -- http://www.php.net/manual/en/function.opendir.php
Edit -- https://master.php.net/note/edit/103884
Del: integrated -- https://master.php.net/note/delete/103884/integrated
Del: useless -- https://master.php.net/note/delete/103884/useless
Del: bad code -- https://master.php.net/note/delete/103884/bad+code
Del: spam -- https://master.php.net/note/delete/103884/spam
Del: non-english -- https://master.php.net/note/delete/103884/non-english
Del: in docs -- https://master.php.net/note/delete/103884/in+docs
Del: other reasons-- https://master.php.net/note/delete/103884
Reject -- https://master.php.net/note/reject/103884
Search -- https://master.php.net/manage/user-notes.php