多維數組時間排序

 多維數組時間排序數組

function compare_order($a,$b){
if($a['create_time'] == $b['create_time']){
return 0;
}
return($a['create_time']>$b['create_time']) ? -1 : 1;
} spa

調用方法排序

usort($list,"compare_order");io

相關文章
相關標籤/搜索