|
Morning all,
Im playing about with some dynamic data and its slowly pissing me off lol.
Heres the problem.
Ive got:
foreach($IpCount as $key => $value) {
echo $key $value ;
}
How can i find what key had the highest value before doing the foreach?
IE:
whatsTheHighestValue($IpCount);
The array hold **** like:
$key = "GB"
$value = "200"
$key = "FR"
$value = "30"
$key = "US"
$value = "140"
From the above I would then like a var called $max to have a value of "200"
Any thoughts?
|