How do I sort a directory by time, and display the last four image files matching a pattern with php
- by purpletonic
I have a directory that will be getting updated frequently, I want to display the last four images files uploaded, which match a certain pattern, on my php page.
Is this possible without having to perform a sort on every single image within the directory?
Many thanks!