Re: [PHP] Sorting multidimensional arrays

2006-11-16 Thread Dave Goodchild
Result. Cheers! On 11/16/06, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2006-11-16 at 15:28 +, Dave Goodchild wrote: > Hi all. I have a multidimensional array here: > > Bums" ["name"]=> string(13) "Tits And Bums" [3]=> string(19) "The Pleasure > > [--SNIP--] > > ...which comprises a

Re: [PHP] Sorting multidimensional arrays

2006-11-16 Thread Robert Cummings
On Thu, 2006-11-16 at 15:28 +, Dave Goodchild wrote: > Hi all. I have a multidimensional array here: > > Bums" ["name"]=> string(13) "Tits And Bums" [3]=> string(19) "The Pleasure > > [--SNIP--] > > ...which comprises a set of returned results for an events search - with the > date computed dy

[PHP] Sorting multidimensional arrays

2006-11-16 Thread Dave Goodchild
Hi all. I have a multidimensional array here: array(6) { [0]=> array(25) { [0]=> string(1) "7" ["eventid"]=> string(1) "7" [1]=> string(2) "17" ["cat_id"]=> string(2) "17" [2]=> string(13) "Tits And Bums" ["name"]=> string(13) "Tits And Bums" [3]=> string(19) "The Pleasure Centre" ["venue"]=> str

Re: [PHP] Sorting multidimensional arrays

2003-02-13 Thread Chris Wesley
On Thu, 13 Feb 2003, Sean Brown wrote: > Let's say I've got an array like so: > > $myarray[0]["firstname"] = "Mickey"; > $myarray[0]["lastname"] = "Mouse"; > $myarray[0]["score"] = 20; > > $myarray[1]["firstname"] = "Donald"; > $myarray[1]["lastname"] = "Duck"; > $myarray[1]["score"] = 10; > > I'd

[PHP] Sorting multidimensional arrays

2003-02-13 Thread Sean Brown
Let's say I've got an array like so: $myarray[0]["firstname"] = "Mickey"; $myarray[0]["lastname"] = "Mouse"; $myarray[0]["score"] = 20; $myarray[1]["firstname"] = "Donald"; $myarray[1]["lastname"] = "Duck"; $myarray[1]["score"] = 10; I'd like be able to sort the array using different dimensions

RE: [PHP] Sorting multidimensional arrays..

2003-02-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: 30 January 2003 19:29 > > I'm struggling with array_multisort, was hoping someone could > give me some > help. > > I have a multidim array, such as: > > $myarray[0][FIRSTNAME] = JOE > $myarray[1][FIRSTNAME] = TIM >

Re: [PHP] Sorting multidimensional arrays..

2003-01-30 Thread Tim Ward
IL PROTECTED]> Sent: Thursday, January 30, 2003 7:29 PM Subject: [PHP] Sorting multidimensional arrays.. > I'm struggling with array_multisort, was hoping someone could give me some > help. > > I have a multidim array, such as: > > $myarray[0][FIRSTNAME] = JOE > $mya

[PHP] Sorting multidimensional arrays..

2003-01-30 Thread Chad Day
I'm struggling with array_multisort, was hoping someone could give me some help. I have a multidim array, such as: $myarray[0][FIRSTNAME] = JOE $myarray[1][FIRSTNAME] = TIM $myarray[2][FIRSTNAME] = BOB $myarray[0][LASTNAME] = SMITH $myarray[1][LASTNAME] = BROWN $myarray[2][LASTNAME] = JONES $my

RE: [PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Jack Dempsey
check http://www.php.net/manual/en/function.asort.php there's a routine someone wrote in the contributed section... -jack -Original Message- From: Rick Dietz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Sorting Multidimens

[PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Rick Dietz
I'm having trouble finding a function to sort a multidimensional array by the value of a given key in the contained arrays. Perhaps i'm missing something, perhaps PHP is missing something. Take the array below. All I'm looking to do is reorder $my_array based on the value of the "name" key for