NYCPHP Meetup

NYPHP.org

[nycphp-talk] multi dimension array sort?

Peter Lehrer pl at eskimo.com
Tue Jun 10 12:33:12 EDT 2003


Did you try ksort? It will sort by key.

--Peter Lehrer
----- Original Message -----
From: "Nestor Florez" <nestorflorez at earthlink.net>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Monday, June 09, 2003 10:49 PM
Subject: [nycphp-talk] multi dimension array sort?


> PHP'ers,
>
> I have an array multi associative array
>
> row[#]['empname'][dept']['ssn']['location']
>
> I want display them in a list and I want theuser to click on the column
name and I will sort it according to the column and then display the array.
>
> I have tried using uasort, asort, array_multisort and I am not able to
make it work.  Can anyone give me a hand on how to do than multi associative
array sort.
>
> thanks,
>
> Nestor :-)
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>




More information about the talk mailing list