$maxVal) { $maxVal = $mountainH; $maxRange = $i; } } // Write an action using echo(). DON'T FORGET THE TRAILING \n // To debug (equivalent to var_dump): error_log(var_export($var, true)); echo "$maxRange\n"; // The number of the mountain to fire on. }