I've ready read various questions on here about sorting arrays by values in PHP but they don't seem to sort the very simple array I have.
Array
(
[area1] => 4.8
[area2] => 6.1
[area3] => 3.6
[area4] => 5.1
)
I'm trying to return an array ordered by values... so in the above example, area3, area1, area4, area2
I've tried asort, but that doesn't seem to work.
Any ideas? I'm sure it must be simple and I'm just missing something. Thanks.