Reputation: 108
I have a snippet of code that looks like this:
foreach ($final_array as $index => $data) {
echo $data[1];
}
What I want to do is sort $data[1] into numerical order. I've tried things like asort() and natsort(), but nothing worked. Any help would be HIGHLY appreciated.
This is how my array looks:
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
)
)
Upvotes: 0
Views: 74