function oyuncucek($veri,$kac) { for ($i=0; $i < $kac; $i++) { $oyuncular=$veri[0][$i]; } return $oyuncular; } echo $oyuncucek($veri,$kac);