PHP continue Statement Last Updated : 25 Aug, 2022 Summarize Comments Improve Suggest changes Share 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 More infoAdvertise with us Next Article PHP continue Statement V vkash8574 Follow Improve Article Tags : Web Technologies PHP PHP-basics Similar Reads PHP goto Statement The goto statement is used to jump to another section of a program. It is sometimes referred to as an unconditional jump statement. The goto statement can be used to jump from anywhere to anywhere within a function. Flowchart of goto statement: Syntax: statement_1; if (expr) goto label; statement_2; 1 min read PHP | Coding Standards PHP follows few rules and maintains its style of coding. As there are many developers all over the world, if each of them follows different coding styles and standards this will raise great confusion and difficulty for a developer to understand another developer's code. It will be very hard to manag 3 min read PHP switch Statement The switch statement is similar to the series of if-else statements. The switch statement performs in various cases i.e. it has various cases to which it matches the condition and appropriately executes a particular case block. It first evaluates an expression and then compares it with the values of 2 min read Getting Started with PHP PHP (Hypertext Preprocessor) is a powerful scripting language widely used for web development. Whether you're looking to create dynamic web pages, handle form data, interact with databases, or build web applications, PHP has you covered. In this guide, we'll take you through the basics of PHP, cover 7 min read PHP | sleep( ) Function The sleep() function in PHP is an inbuilt function which is used to delay the execution of the current script for a specified number of seconds. The sleep( ) function accepts seconds as a parameter and returns TRUE on success or FALSE on failure. If the call is interrupted by a signal, sleep() funct 2 min read Like