Im using this code to get the most recent file created:
<?php $files = glob($siteRoot.'/dir/*/*.php'); $files = array_combine($files, array_map('filectime', $files)); arsort($files); echo key($files); ?>
How can I enhance this to get the last 3 files created, or what ever number I need? Any help would be appreciated. Thanks!