Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then M Saleh EG declared > i'd recommand u to use trees if u got complicated data arrays. > > use tree datascturcutres... u could sort n do watever then > or jus queues or stacks depending on what u wanna do > > Try PEAR Tree class it might help > > Hope that was usefull. *ve

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread M Saleh EG
i'd recommand u to use trees if u got complicated data arrays. use tree datascturcutres... u could sort n do watever then or jus queues or stacks depending on what u wanna do Try PEAR Tree class it might help Hope that was usefull. On Fri, 8 Oct 2004 20:13:10 +0200, Nick Wilson <[EMAIL

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Nick Wilson declared > > * and then Ford, Mike declared > php sorry about the dupes everyone, i changed router today and resent a whole bunch of stuff b4 i realized it wasnt goint out... -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared > > 543 => 2 > > 432 => 2 // like here, more 2's than 1's see? > > 566 => 2 > > 568 => 2 > > 999 => 3 > > 878 => 3 > > 444 => 3 > > That's not terribly good, as you are using the "unknowns" (ip addresses) as keys to > the "knowns" (machine IDs). It would be be

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared php > > 543 => 2 > > 432 => 2 // like here, more 2's than 1's see? > > 566 => 2 > > 568 => 2 > > 999 => 3 > > 878 => 3 > > 444 => 3 > > That's not terribly good, as you are using the "unknowns" (ip addresses) as keys to > the "knowns" (machine IDs). It would b

RE: [PHP] Help with Array Sorting Please

2004-10-08 Thread Ford, Mike
On 07 October 2004 17:29, Nick Wilson wrote: > Hi, > > If you scroll up the list you'll see another thread of mine, this is > related. The reason for a new thread is that i've made a lot > of progress > but the old was getting really confusing.. > > Here's the scoop: > > I have an array like th

Re: [PHP] Help with Array Sorting Please

2004-10-07 Thread djoseph
> 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