T
Tony Y
Guest
$n = 1;
$m = 1;
$countn = 0;
$countm = 0;
while($n <= 10):
while($m <= 5):
if($m == 3):
break;
endif;
$m++;
$countm++;
echo "the \$m loop is executed $countm<br />";
endwhile;
$n++;
$countn++;
echo "the \$n loop is executed $countn<br />";
endwhile;
?>
the above code can execute on my web server successfully, but when I change the "break" to "continue", fatal error occurs: Fatal error: Maximum execution time of 30 seconds exceeded in /home/darkt7/public_html/work/20090404.php on line 54, WHY???
$m = 1;
$countn = 0;
$countm = 0;
while($n <= 10):
while($m <= 5):
if($m == 3):
break;
endif;
$m++;
$countm++;
echo "the \$m loop is executed $countm<br />";
endwhile;
$n++;
$countn++;
echo "the \$n loop is executed $countn<br />";
endwhile;
?>
the above code can execute on my web server successfully, but when I change the "break" to "continue", fatal error occurs: Fatal error: Maximum execution time of 30 seconds exceeded in /home/darkt7/public_html/work/20090404.php on line 54, WHY???