【发布时间】:2012-07-20 01:08:24
【问题描述】:
我想知道如何像这样对数组进行排序:
$array[] = Array (
'name' => '/home/gtsvetan/public_html/presta/cms.php'
'type' => 'text/x-php'
'size' => 1128
'lastmod' => 1339984800
);
$array[] = Array (
'name' => '/home/gtsvetan/public_html/presta/docs/'
'type' => 'dir'
'size' => 0
'lastmod' => 1329253246
);
我想先按类型(首先是文件夹,然后是文件)排序,然后按字母顺序排序。但我不知道如何排序。
最好的问候, 乔治!
【问题讨论】:
标签: php arrays sorting file-type alphabetical