08-01-2011, 03:48 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
|
Thanks Tony, thats one for the "code snippets" :D
Ok, next problem....
Code:
$missed[0] = array(Fred, Smith, 3)
$missed[1] = array(Bert, Smith, 52)
$missed[2] = array(Gerty, Blogs, 22)
$missed[3] = array(Fred, Blogs, 22)
How do I count the quantity of unique occurances of the last emement this the array, i.e.
Code:
$uniques[$i] = array("missed" => 22, "occurances" => 2)
There are around 35k records that I have to go through, so not enormous, and there can only be a max of 52 unique entries (by design), I'm just getting lost how to itterate through the arrays and count them correctly.. Any ideas ?
__________________
Thanks... Simon
Sex, Drugs & Linux Rules
|
|
|