Quote:
|
Originally Posted by Varius
To do it with a loop, you could do something like:
PHP Code:
$high_value = $array[0];
$high_key = 0;
foreach ($array as $key=>$value) {
if ($value > $high_value) {
$high_value = $value;
$high_key = $key;
}
}
However since their are only 50 items, yes sort might be faster.
|
im going to try that yes.. im on it.. thankie!