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.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.