Special Process Control Statements
Special Process Control statements are required if you want to plant loops during loop body execution, or to skip some loops to continue with other loops.
1. Break statement
Break can end the execution of the current for, foreach, Whiel, do-while, or switch structures.
2. Continue statement
The continue statement can only be used inside a loop statement, and the function is to skip the loop and continue with the next loop structure. In the while and Do-while statements, the continue statement jumps to the loop condition to begin execution, and the action for the For loop floral is a variable update.
The continue functions are as follows:
(1) Like the break statement, the continue statement is usually used in loops, or it can accept an optional numeric parameter to decide to jump out of multiple statements.
(2) After encountering the continue statement in the loop, no statement after the continue in the loop is executed.
(3) The Continue statement is used to end the grade cycle and continue the next cycle.
3. Exit statement
The current script simply executes to the exit statement, regardless of which structure it is in, and exits the current scripts directly. Exit () is a function that can output a message with one parameter and exit the current script.
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the PHP learning (ix)-Special Process control statements, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.