
does anyone know a function that'll find the highest number in a array ?
now im doing it this way:
<?PHP
$array = array (.....)
for($i=0;;$i++;) {
if($array[$i]>=$highest) {
$highest = $array[$i];
break;
} else {
$highest = $i;
}
}
echo "the highest number found: " . $highest . "";
?>
there has to be a easyer way for this ...
does anyone know ?
Thomas