note 121183 added to function.scandir
| From: | SPekary | Date: | Sat, 03 Jun 2017 18:30:28 +0000 |
| Subject: | note 121183 added to function.scandir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209110@lists.php.net to get a copy of this message | ||
Unless you specify no sorting, file names are sorted in ASCII alphabetic order, meaning numbers
first, then uppercase, then lowercase letters, even on operating systems whose file system ignores
the case of file names when it does its own sorting.
For example, on Mac OS, the following files will appear in this order in the Finder, when your disk
is formated using the standard file system:
1file.php
a.inc
B.txt
c.txt
However, scandir will produce an array in the following order:
1file.php
B.txt
a.inc
c.txt
----
Server IP: 72.52.91.14
Probable Submitter: 98.210.100.59
----
Manual Page -- http://php.net/manual/en/function.scandir.php
Edit -- https://master.php.net/note/edit/121183
Del: integrated -- https://master.php.net/note/delete/121183/integrated
Del: useless -- https://master.php.net/note/delete/121183/useless
Del: bad code -- https://master.php.net/note/delete/121183/bad+code
Del: spam -- https://master.php.net/note/delete/121183/spam
Del: non-english -- https://master.php.net/note/delete/121183/non-english
Del: in docs -- https://master.php.net/note/delete/121183/in+docs
Del: other reasons-- https://master.php.net/note/delete/121183
Reject -- https://master.php.net/note/reject/121183
Search -- https://master.php.net/manage/user-notes.php