Sort files from directory & order them by filemtime()


/ Published in: PHP
Save to your folder(s)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.