I have:
$directory='testdirectory/';
$handler = opendir($directory);
while ($file = readdir($handler)) {
...
}
What is the output of opendir/readdir like this sorted by? Is it date, alphabetical or something else because I cannot tell from the output.
http://php.net/readdir says: “The entries are returned in the order in which they are stored by the filesystem.”