主页
PHP
PHP foreach 循环
tryphp_foreach_continue
运行 ❯
×
更改方向
保存代码
更改主题
<?php $colors = array("red", "green", "blue", "yellow"); foreach ($colors as $x) { if ($x == "blue") continue; echo "$x
"; } ?>
red
green
yellow