I have a content directory to be returned in descending natural order.
I\'m using scandir() and natsort(), but the addition of array_reve
scandir()
natsort()
array_reve
$dir='dead_dir/dead_content/'; $launcher= scandir($dir); natsort($launcher); $r_launcher = array_reverse($launcher,true); foreach($r_launcher as $value ){ if(in_array(pathinfo($value, PATHINFO_EXTENSION),array('png'))){ echo ''}}