function getMatches() { $matches = new Matches(); echo $matches->getMatches(); }
<?php include_once '../matches.php'; $game = new Matches(); $gameAll = json_decode($game->getMatches()); $games = $gameAll->matches; ?> <?php foreach ($games as $row) { ?> <div class="row"> <div class="col s3"> <div class="team1_image"> </div> </div>