Answers for "php get latest file in directory"

PHP
0

php get latest file in directory

$files = scandir('data', SCANDIR_SORT_DESCENDING);
$newest_file = $files[0];
Posted by: Guest on August-10-2020

Code answers related to "php get latest file in directory"

Browse Popular Code Answers by Language