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