|
Posted by ZeldorBlat on 10/15/07 20:04
On Oct 15, 3:20 pm, "Paul" <piet...@xs4all.nl> wrote:
> How can I sort a multi-dimensional array?
> For instance:
> a[Name], a[adress], a[number of messages].
>
> How to sort on the item of number of messages?
>
> Thanks for the help.
Something like this (untested):
usort($a, create_function('$a1,$a2', 'return $a1["number of messages"]
- $a2["number of messages"];'));
[Back to original message]
|