List directories by date using PHP

1/12/2011

I struggled for an elegant way to list directories and files by date with PHP.  Here is the fruit of much Google-Fu.  This will list directories and files from newest to oldest.

There is 1 comment in this article:

  1. 7/03/2012Joshua Paine say:

    If >1 file has the same mtime, only the last (original directory order) will be displayed.

Write a comment: