continue statement in PHP
Notes:
PHP continue statement: It continues the loop
- PHP engine skips statement(s) under the continue statement, and transfers the control
to the condition part of the loop in the context of while and do while loops
whereas in the context of for loop, control is transferred to increment / decrement part.
Syntax:
continue;
Ex: continue inside for loop
for($i=1; $i<6; $i++)
{
if($i==3)
{
continue;
}
echo $i,"<br/>";
}
Interview Questions:
1. PHP stands for ______________
a. Hypertext Preprocessor
b. Preprocessor Hypertext
c. Personal Home Processor
d. Personal Hypertext processor
Ans: a