2
我添加元素多維數組這樣排序多維數組
foreach($results as $res){
$fwidth=$res[0];
$fpath=$res[1];
$sub = array (
'img_w' => $fwidth,
'img_path' => $fpath,
);
$widths[] = $sub;
}
,我想從更大的「img_w」更小的(DESC)排序$寬度陣列。
任何人都可以幫助我嗎?提前致謝。
非常感謝Jan,我只是快速閱讀了文檔,看起來很好。 – Telmo 2011-04-25 16:27:59