NYCPHP Meetup

NYPHP.org

[nycphp-talk] multi dimension array sort?

Nestor Florez nestorflorez at earthlink.net
Tue Jun 10 12:55:23 EDT 2003


I want to sort the values of the array not just the keys

I am tryiung the array_multisort, without success.  I will continue.

Thanks,

Nestor :-)
-------Original Message-------
From: Peter Lehrer <pl at eskimo.com>
Sent: 06/10/03 09:35 AM
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] multi dimension array sort?

> 
> 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