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
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
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
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
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
> -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
>
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
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
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
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
10 matches
Mail list logo