//------  透過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時間排序 結束----------

文章標籤
全站熱搜
創作者介紹
創作者 incode 的頭像
incode

程式筆記本

incode 發表在 痞客邦 留言(0) 人氣(1,001)