0
$rounds = $season->championsLeague->rounds->where('stage', 'Olympic')->take(2);
$indexes = [];
foreach ($rounds as $index => $round) {
$indexes[] = $index;
}
echo '<pre>';print_r($indexes);echo '<pre>';
我接收在索引:數組 ( [0] => 6 [1] => 7 )指數的foreach開始不與0
它是如何可能? 爲什麼不陣列 ( [0] => 0 [1] => 1 )