Posted by StevePBurgess on 06/26/06 20:17
Hi. I have an array, thus:
Array (
[0] => Array ( [Freq] => 28 [Name] => Tomato )
[1] => Array ( [Freq] => 4 [Name] => Banana )
[2] => Array ( [Freq] => 54 [Name] => Orange )
[3] => Array ( [Freq] => 24 [Name] => Eggplant )
[4] => Array ( [Freq] => 5 [Name] => Courgette )
[5] => Array ( [Freq] => 4 [Name] => Apple )
)
I would like to be able to sort it either by the Frequency or the Name
of the fruit or vegetable.
I just can't seem to get it to work. I'm sorry - I realise that this is
probably really easy but my brain isn't working today and the examples
on php.net seem incomprehensible to me.
Many thanks, in anticipation
Steve
Navigation:
[Reply to this message]
|