You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
614 B
26 lines
614 B
<?php
|
|
|
|
//当i=5时跳到第三层循环
|
|
while(1){
|
|
while(1)
|
|
{
|
|
while (1)
|
|
{
|
|
for($i=0; $i<10 ;$i++)
|
|
{
|
|
echo $i.'<br>';
|
|
if($i==5)
|
|
{
|
|
break 2;//跳出第2层循环,进入第三层循环;
|
|
}
|
|
echo "第1层循环<br>";
|
|
}
|
|
echo "第2层循环<br>";
|
|
}
|
|
echo "第3层循环<br>";
|
|
break;
|
|
}
|
|
echo "第4层循环<br>";
|
|
break;
|
|
}
|
|
?>
|