Articles → PHP → Break And Continue Statements In PHP
Break And Continue Statements In PHP
Software Requirement
- XAMPP is installed on your machine
- Any text editor like Notepad
Technical Knowledge
Break Statement
for ($i = 1; $i < 10; $i++) {
echo $i;
if ($i == 5)
break;
Continue Statement
for ($i = 1; $i < 10; $i++) {
echo $i;
if ($i == 5)
continue;