1.2.88. Break With 0¶
It is not possible to break 0 : it makes no sense. Break 1 is the minimum, and is the default value.
<?php
// Can't break 0. Must be 1 or more, depending on the level of nesting.
for($i = 0; $i < 10; $i++) {
break 0;
}
for($i = 0; $i < 10; $i++) {
for($j = 0; $j < 10; $j++) {
break 2;
}
}
?>