while文・break文・continue文04
continue文
- 繰り返しの処理をスキップして次へ進める
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>continue</title> </head> <body> <?php for( $i=1 ; $i <= 100 ; $i++ ){ $ans = $i % 10; if( $ans > 0){ continue; } print ( $i. 'は10で割り切れます<br>'. "\n" ); } ?> </body> </html>