Continue and Break Statements in php

continue and break is the reserved keyword provided by php.?
this keyword is used to continue and break the statement of specified condition is true or false.
continue is the keyword in php. the continue keyword is used to continue the loop. It continues the current flow of the program execution and skips the?
remaining code at the specified condition.

Flow Diagram :-?

Example :- Continue

File Name : index.php


for ($i=1; $i<=10; $i++) {
//inner loop
for ($j=1; $j<=3; $j++) {
if (!($i == $j) ) {
continue;
//skip when i and j does not have same values
}
echo $i.' '.$j;
echo "
";
}
}
?>

Output :-

1??1
2??2
3??3





Previous Next


Trending Tutorials




Review & Rating

0.0 / 5

0 Review

5
(0)

4
(0)

3
(0)

2
(0)

1
(0)

Write Review Here