Codice PHP:
$array = array('20070830.txt','20070902.txt','20070901.txt','20070831.txt');
$ts = array();
foreach(
$array as $file)
    
$ts[] = strtotime(array_shift(explode('.',$file)));
rsort($ts);
$recente date('Ymd',array_shift($ts)).'.txt';
echo 
$recente
Non vale. Hai editato, prima la domanda non c'era