2013-10-10 90 views
0

我有一個數組,它是一個數組的數組,按日期排序,像這樣:數組合並保持相同的順序?

Array 
(
    [1379167200] => Array 
     (
      [110] => Introduction to Banking | Saturday, September 14, 2013 - 10:00am 
     ) 

    [1380376800] => Array 
     (
      [71] => Saving, Investing, Debt | Saturday, September 28, 2013 - 10:00am 
     ) 

    [1381588200] => Array 
     (
      [72] => Setting Personal Goals | Saturday, October 12, 2013 - 10:30am 
     ) 

    [1382796000] => Array 
     (
      [74] => Type of Account: What's Right for You? | Saturday, October 26, 2013 - 10:00am 
     ) 

    [1384009200] => Array 
     (
      [81] => Creating an Account: Learning to Budget | Saturday, November 09, 2013 - 10:00am 
     ) 
) 

我想保持順序(即按日期排序),但最好只包括最內數組項中的單個數組。像這樣:

Array 
(
     [110] => Introduction to Banking | Saturday, September 14, 2013 - 10:00am 

     [71] => Saving, Investing, Debt | Saturday, September 28, 2013 - 10:00am 

     [72] => Setting Personal Goals | Saturday, October 12, 2013 - 10:30am 

     [74] => Type of Account: What's Right for You? | Saturday, October 26, 2013 - 10:00am 

     [81] => Creating an Account: Learning to Budget | Saturday, November 09, 2013 - 10:00am 
) 

這怎麼可能?我需要將整數轉換爲字符串還是其他?

我絕對需要按日期維護排序,但我也需要維護整數鍵和值之間的關係,兩者都用到。

回答

相關問題