natsort()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

php5

<code>
$d = '/somedir/subdir';
$od = opendir($d);
if ($od) {
    $dl = scandir($d);
    natsort($dl);
}
</code>

The sorted array is available through print_r().
How can I obtain a natsorted array that can be listed using :

while ($i <= $array_count){print $dl[$i]}



Thanks 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux