If you just want the largest value in the array use the max function. This will return the largest value, although not the corresponding key. It does not change the original array.
If you care about the the key you could then do something like:
function max_key($array)
{
$maximum$key = array_search(max($array);
foreach, ($array as $key => $val)
if ($val == $maximum) return $key;
}
(Edited to include @binaryLV's suggestion)