php get latest file in directory

39

$files = scandir('data', SCANDIR_SORT_DESCENDING);
$newest_file = $files[0];

Comments

Submit
0 Comments