get_score_team($team) as $row) { $points += $row['points']; } return $points; } $scoreGli = get_total_points('gli', $relativePath); $scorePek = get_total_points('pek', $relativePath); $scoreBoo = get_total_points('boo', $relativePath); $scoreVer = get_total_points('ver', $relativePath);