![]() |
Array Sorting !
Am at my wits end here and am hoping there is a quick and easy solution....
I need to sort a multi dimentional array, the array is built as follows (abridged): Code:
$i++;Code:
$missed[0] = array(Fred, Smith, 3)Or, am I going about this in the wrong way ? |
Got it sorted... Bit more googling and found the following code..
Code:
function aasort (&$array, $key) { |
|
Thanks Tony, thats one for the "code snippets" :D
Ok, next problem.... Code:
$missed[0] = array(Fred, Smith, 3)Code:
$uniques[$i] = array("missed" => 22, "occurances" => 2) |
you can use the the hash-table characteristic of arrays in your advantage here. For example:
PHP Code:
PHP Code:
|
You sir, are a god :D
|
Glad it helped. I am not a god haha, if anything a sorcerer's apprentice :P
|
| All times are GMT. The time now is 07:43 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0