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 )