PHP continue Statement Last Updated : 25 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The continue statement is used within a loop structure to skip the loop iteration and continue execution at the beginning of condition execution. It is mainly used to skip the current iteration and check for the next condition. The continue accepts an optional numeric value that tells how many loops you want to skip. Its default value is 1. Syntax: loop { // Statements ... continue; } Example 1: The following code shows a simple code with a continue statement. PHP <?php for ($num = 1; $num < 10; $num++) { if ($num % 2 == 0) { continue; } echo $num . " "; } ?> Output1 3 5 7 9 Example 2: The following code shows a continue 2 statement that will continue with the next iteration of the outer loop. PHP <?php $num = 4; while($num++ < 5) { echo "First Loop \n"; while(1) { echo "Second Loop \n"; continue 2; } echo "Outer value \n"; } ?> OutputFirst Loop Second Loop Reference: https://www.php.net/manual/en/control-structures.continue.php Comment V vkash8574 Follow Improve V vkash8574 Follow Improve Article Tags : Web Technologies PHP PHP-basics Explore PHP Tutorial 8 min read BasicsPHP Syntax 4 min read PHP Variables 5 min read PHP | Functions 8 min read PHP Loops 4 min read ArrayPHP Arrays 5 min read PHP Associative Arrays 4 min read Multidimensional arrays in PHP 5 min read Sorting Arrays in PHP 4 min read OOPs & InterfacesPHP Classes 2 min read PHP | Constructors and Destructors 5 min read PHP Access Modifiers 4 min read Multiple Inheritance in PHP 4 min read MySQL DatabasePHP | MySQL Database Introduction 4 min read PHP Database connection 2 min read PHP | MySQL ( Creating Database ) 3 min read PHP | MySQL ( Creating Table ) 3 min read PHP AdvancePHP Superglobals 6 min read PHP | Regular Expressions 12 min read PHP Form Handling 4 min read PHP File Handling 4 min read PHP | Uploading File 3 min read PHP Cookies 9 min read PHP | Sessions 7 min read Like