【发布时间】:2010-10-21 03:02:33
【问题描述】:
我有一个这种格式的数组:
Array
(
[0] => Array
(
[text] => tests
[language] =>
[advertiserCompetitionScale] => 5
[avgSearchVolume] => 7480000
[lastMonthSearchVolume] => 9140000
)
[1] => Array
(
[text] => personality tests
[language] =>
[advertiserCompetitionScale] => 5
[avgSearchVolume] => 165000
[lastMonthSearchVolume] => 201000
)
[2] => Array
(
[text] => online tests
[language] =>
[advertiserCompetitionScale] => 5
[avgSearchVolume] => 246000
[lastMonthSearchVolume] => 301000
)
)
如何按avgSearchVolume 字段的降序对该格式的数组进行排序?有内置函数吗?
【问题讨论】:
-
这不是关联数组...而是关联数组的数组;-)
-
是的,关联数组的索引数组