<td><strong>Átlag</strong></td> </tr> </thead> <?php for ($i = 0; $i < count($avgs); $i++) { echo '<tr>'; echo '<td>' . $avgs[$i]['year'] . '/' . strtoupper($avgs[$i]['class']) . '</td>'; echo '<td>' . round($avgs[$i]['avg_mark'], 2) . '</td>'; echo '</tr>'; } ?> </table> </div> <?php $bests = $t->getClassBest(); ?> <div class="widthhalf left"> <h3>Osztályok legjobb tanulói</h3> <table class="table table-bordered"> <thead> <tr> <td><strong>Osztály</strong></td> <td><strong>Átlag</strong></td> </tr> </thead> <?php for ($i = 0; $i < count($bests); $i++) { echo '<tr>'; echo '<td>' . $bests[$i]['year'] . '/' . strtoupper($bests[$i]['class']) . '</td>';