使用 foreach 输出数组值时如何前进 5 步?所以在这个看跌期权将是 1, 5
$array = ("1","2","3","4","5","6","7","8","9");
foreach ($array as &$value) {
echo $value; //Where do I tell it to move 5 paces forward?
echo "<br/ >";
}
如果不能使用 foreach 循环,我愿意使用其他东西。我不认为这里可以使用“while”或“for”?