Php continue yang 2009年8月17日 0 PHP 4, PHP 5, PHP 7) continue 在循环结构用用来跳过本次循环中剩余的代码并在条件求值为真时开始执行下一次循环。 <?php for ($i = 0; $i < 5; ++$i) { if ($i == 2){ continue } print "$i\n"; } ?> 输出结果为: 0 1 3 4