主页
PHP
PHP Break
tryphp_break_while
运行 ❯
×
更改方向
保存代码
更改主题
<?php $x = 0; while($x < 10) { if ($x == 4) { break; } echo "The number is: $x
"; $x++; } ?>
The number is: 0
The number is: 1
The number is: 2
The number is: 3