PHP – continue statement

The continue statement is used if we want to stop the execution and returns the control in the begging of the loop. The continue statement mainly used in PHP loops like for loop, while loop, do…while loop etc.


The difference between break and continue statement in PHP

The main difference between break; and continue statement is that the break; statement just stop the execution of the program and just come out of the loop immediately instead in continue; statement, it will just skip the current execution of the program and control returns in the beginning of the program.

Leave a Reply

Your email address will not be published.