0
This php script will translate shots on 18 holes to a total under par or E which is 0.
$course = array(0, 4, 5, 4, 3, 5, 3, 4, 4, 4, 4, 4, 4, 4, 3, 5, 3, 4, 5);
if ($totalpar == 0) {
$score = 'E';
$played = 0;
} else {
if(!empty($h1)) {
$h1score = $course[1] - $h1;
} else {
$h1score ...