/ Published in: PHP
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
URL: http://www.bitrepository.com/web-programming/php/sort-files-by-filemtime.html