Home »
MCQs »
PHP MCQs
What is the use of PHP 'continue' statement?
97. What is the use of PHP "continue" statement?
- breaks the loop and transfers the control to the statement written just after the loop body
- breaks the all loop statement (outer loops and inner loops)
- breaks one iteration of the loop and transfers the control to the next loop iteration
- All of the above
Answer: C) breaks one iteration of the loop and transfers the control to the next loop iteration
Explanation:
In PHP, the continue statement is used to break one iteration of the loop and transfer the control to the next loop iteration.