Is there any function which finds the biggest element value in array?
Try this:
for(i=0; i < (count($array) - 1) ; i++) { if ($array > $array[i+1]) { $max = $array; } }
you forgot to make the "i" into the "$i"