Hi all,
Would like to know the best way of going about this:
Problem - list the most recently updated subfolder from within a list of folders.
So,
root folder 1
-folder 1
--sub folder 1
--sub folder 2
-folder 2
--sub folder A
--sub folder B
Theres more folders and sub folders, but I'd thought I'd keep it simple for here.
Basically, need to search through the subfolders within the folders, find out which one is the most recently updated.
Was thinking to search through each folder and get the latest from each one, put them into an array, and then sort that array in date order, and then echo out the correct array entry.
Is there a better way?