Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Torsten Roehr
> > OK, so it's just the other way round - I see. Instead of deleting the entry > > with the highest expiry date we delete all the others: > > > > foreach ($foo as $key => $value) { > > > > $tempArray = array(); > > > > foreach ($value as $subkey => $subvalue) { > > > >

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Burhan Khalid
Torsten Roehr wrote: Well, it does some sorting, but not quite what I'm after :( I've managed to get the list so that all the (sub) entries are sorted in the correct order. Now its just a matter of finding the highest expire date for /each/ domain, and delete the other entries for that domain. S

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Torsten Roehr
> Well, it does some sorting, but not quite what I'm after :( > > I've managed to get the list so that all the (sub) entries are sorted in > the correct order. Now its just a matter of finding the highest expire > date for /each/ domain, and delete the other entries for that domain. > So, in the e

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Burhan Khalid
Torsten Roehr wrote: "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key']

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Torsten Roehr
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Torsten Roehr wrote: > > > "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Greetings everyone : > >> > >> Having a hard time with this one. I have a multi-dim array > >>$foo[$x][$

Re: [PHP] Re: Array Sorting Headaches

2004-04-18 Thread Burhan Khalid
Torsten Roehr wrote: "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data [ snipped ] I need to filter the results

[PHP] Re: Array Sorting Headaches

2004-04-18 Thread Torsten Roehr
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings everyone : > >Having a hard time with this one. I have a multi-dim array > $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data : > > Array > ( > > [$x] => Array > ( >

[PHP] Re: Array Sorting

2003-06-19 Thread Mark Clarkstone
I found this Great PHP Starter site check it out http://www.htmlite.com/PHPintro.php "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I have an array that looks like this: > > $i = 0; > $item[$i] = array( 'link' => 'http://...', >'image

[PHP] Re: Array sorting

2003-02-07 Thread Philip Hallstrom
never done it, but check out: http://www.php.net/manual/en/function.array-multisort.php On Sat, 8 Feb 2003, Zydox wrote: > My question is if anyone have any idé on how to sort this array so that the > names and ages are sorted after Close Friend, Friend, Wife and last > Family... > > $A[] = arra