get_score_team($team) as $row) { $points += $row['points']; } return $points; } $scoreBoo = get_total_points('boo'); $scorePek = get_total_points('pek');