//------ 透過linux時間排序 開始----------
function cmp_ay( ar1, ar2 )
{
la = strtotime(ar1['date']);
lb = strtotime(ar2['date']);
//echo "la:lb <br />";
if (la<lb)
return -1;
else if (la>lb)
return 1;
/*if (ar1['type']<ar2['type'])
return -1;
else if (ar1['type']>ar2['type'])
return 1;*/
return 0;
}
usort(all_list, 'cmp_ay');
//------ 透過linux時間排序 結束----------
文章標籤
全站熱搜
