Yani benim geçerli kod:
$path = 'C:\\movies';
$d = dir($path);
$movies = array();
$movietimes = array();
while (false !== ($entry = $d->read()))
{
if($entry !== '.' AND $entry !== '..')
{
$stat = stat($path.'\\'.$entry);
$movietimes[] = $stat['ctime'];
$movies[] = $entry;
}
}
$d->close();
natsort($movietimes);
$movietimes = array_reverse($movietimes, true);
foreach($movietimes as $k=>$v)
{
echo $movies[$k];
}
However now I want to be able to access three at a time. Any ideas?