我有一个如下所示的代码片段:
foreach ($final_array as $index => $data) {
echo $data[1];
}
我想要做的是将 $data[1] 排序为数字顺序。我尝试过 asort() 和 natsort() 之类的方法,但没有任何效果。任何帮助将不胜感激。
这是我的数组的外观:
Array
(
[1] => Array
(
[0] => Awesomedude123
[1] => 399,408
[2] => September 16, 2012
)
[2] => Array
(
[0] => Username11
[1] => 1,914,144
[2] => September 16, 2012
)
[3] => Array
(
[0] => EpicSurfer
[1] => 1,031,427
[2] => September 16, 2012
)
)