這應該是非常簡單的,但是怎麼走呢。 我想通過一鍵排序的多維數組,像這樣:如何用特定的鍵排序多維數組?
Array (
[0] => Array
(
[iid] => 1
[invitee] => 174
[nid] => 324343
[showtime] => 2010-05-09 15:15:00
[location] => 13
[status] => 1
[created] => 2010-05-09 15:05:00
[updated] => 2010-05-09 16:24:00
)
[1] => Array
(
[iid] => 1
[invitee] => 220
[nid] => 21232
[showtime] => 2010-05-09 15:15:00
[location] => 12
[status] => 0
[created] => 2010-05-10 18:11:00
[updated] => 2010-05-10 18:11:00
))
說我想[狀態],按這個,我會怎樣實現這一目標? 在此先感謝!
這個已經被問很多次了 - 看到http://stackoverflow.com/questions/777597/sorting-an-associative-array-in -php,http://stackoverflow.com/questions/96759/how-do-i-sort-a-multidimensional-array-in-php,http://stackoverflow.com/questions/96759/how-do-i -a-multi-dimensional-array-in-php作爲開始 – 2010-05-10 17:12:24