I\'m trying to make scandir();
function go beyond its written limits, I need more than the alpha sorting it currently supports. I need to sort the scandir
Alternative example..
$dir = "/home/novayear/public_html/backups";
chdir($dir);
array_multisort(array_map('filemtime', ($files = glob("*.{sql,php,7z}", GLOB_BRACE))), SORT_DESC, $files);
foreach($files as $filename)
{
echo "".substr($filename, 0, -4)."
";
}