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