dilersen limit 3 yapıp foreach döngünün içinde
$get_top = [];
$i = 1;
foreach($tops as $top){
$get[$i] = $top;
$i++;
}kullanarak $get_top datasına atayabilir, ordan çekebilirsin.
$get_top = [
'1' => $tops[0],
'2' => $tops[1],
'3' => $tops[2],
];
bu daha mantıklı oldu sanki. döngüye neden yazdıysam. neyse hangisi işini görürse artık
biraz daha açıklayabilir misin kodu düzenleyerek paylaşır mısın , paylaştığım şekilde rica etsem kusura bakma anlayamadım

<table class="table table-striped table-sm text-center">
<thead class="thead-dark">
<tr>
<i class="fa fa-trophy fa-3x text-warning" aria-hidden="true">[B][U]<?php echo $tops[0][2]; ?>[/U][/B]</i> <br>
<hr>
<i class="fa fa-trophy fa-3x mt-1 text-light" aria-hidden="true">[B][U]<?php echo $tops[1][2]; ?>[/U][/B]</i><br>
<hr>
<i class="fa fa-trophy fa-3x mt-1 text-danger" aria-hidden="true">[B][U]<?php echo $tops[2][2]; ?>[/U][/B]</i>
</tr>
</thead>
<tbody class="table-primary text-dark">
</tbody>
</table>çözüldü