Re: Help with Array Sorting Please

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

 



> I have an array like this:
> 
> 123 => 1  // each value may have few or many duplicate values 
> 321 => 1
> 543 => 2
> 432 => 2 // like here, more 2's than 1's see?
> 566 => 2
> 568 => 2
> 999 => 3
> 878 => 3
> 444 => 3
> 
> Now, the keys are not the issue. What i would really like, is for that
> array, to end up like this:
> 
> 123 => 1
> 543 => 2
> 999 => 3
> 321 => 1
> 432 => 2
> 878 => 3
> 123 => 1
> 566 => 2
> 
> and so on... 

I didn't see your other thread, but, would sort() help you?  www.php.net/sort

-Dan Joseph

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