Re: sortind arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# kalles@xxxxxxxxxxxxx / 2007-01-25 08:12:14 +0200:
> How can I sort an array like this so that it would be ASC ordered by the [1] 
> key in subarrays? I need to maintain only the subarray key - value pairs. 
> (Do I make sense?)
> 
> Array
> (
>     [0] => Array
>         (
>             [0] => Logo
>             [1] => NameC
>             [2] => Home
>             [3] => url
>         )
> 
>     [1] => Array
>         (
>             [0] => Logo
>             [1] => NameA
>             [2] => Home
>             [3] => url
>         )
> 
>     [2] => Array
>         (
>             [0] => Logo
>             [1] => NameG
>             [2] => Home
>             [3] => url
>         )
> }

http://www.php.net/usort

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux