i am using this code for listing a directory
foreach(scandir('back/1') as $folder){
if (in_array($folder, array('.', '..'))) continue;
echo basename($folder); // get folder's name
}
but i want to sort the directories input by modifecation time.
how to do it.
Regards
1 Answer