php基础:for循环的continue和break for($num = 2;$num <=10;$a++){ if($num == 4){ //continue; 跳过这个 直接下一个 break; //中断打印 后面的都不打印 } }