【发布时间】:2011-01-26 16:09:57
【问题描述】:
我正在尝试按season_number 对该数组进行排序,但是我不确定要使用哪个函数,因为我假设我需要自定义排序?有什么想法吗?
Array
(
[0] => Array
(
[season_number] => 7
[show_id] => 21
[show_seasons_id] => 14
)
[1] => Array
(
[season_number] => 6
[show_id] => 21
[show_seasons_id] => 31
)
[2] => Array
(
[season_number] => 1
[show_id] => 21
[show_seasons_id] => 40
)
[3] => Array
(
[season_number] => 2
[show_id] => 21
[show_seasons_id] => 41
)
)
【问题讨论】:
标签: php arrays sorting multidimensional-array