php-general | 2001122
Date: 12/31/01
- Next message: John Monfort: "[PHP] Testing: Igonore This Message"
- Previous message: David Jackson: "Re: [PHP] Select box won't display in Netscape 4.xx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Okay so I have a multidimensional associative array, $userlist[$file][$stat], $stat only contains one value, I want to sort $userlist[$file] based off some associative element in $stat, say like 'wins'. array_multisort isn't appropriate as far as I can tell since $stat isn't an array, it's just a value, like, $userlist[$files]['wins']=4. An exampleof the data would be as follows:
$userlist['000001']['wins']=4
$userlist['000002']['wins']=9
$userlist['000003']['wins']=2
I'd like, after running whatever command/function, to have the list be sorted as follows-
$userlist['000002']['wins']=9
$userlist['000001']['wins']=4
$userlist['000003']['wins']=2
I'm sure it's possible, I'm just clueless as to HOW to go about it. Any help much appreciated.
Regards
Louis Grenzebach
- Next message: John Monfort: "[PHP] Testing: Igonore This Message"
- Previous message: David Jackson: "Re: [PHP] Select box won't display in Netscape 4.xx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

