$data[1] = array('volume' => 86, 'edition' => 6);
$data[2] = array('volume' => 85, 'edition' => 6);
$data[3] = array('volume' => 98, 'edition' => 2);
$data[4] = array('volume' => 86, 'edition' => 1);
$data[5] = array('volume' => 67, 'edition' => 2);
// 準備要排序的陣列
foreach ($data as $k => $v) {
$edition[] = $v['edition'];
}
array_multisort($edition, SORT_ASC, $data);
本作品採用《CC 協議》,轉載必須註明作者和本文連結