break and continue in php

break command exits the innermost loop construct the contains it
continue command skip to the end of current iteration

break command example in php

for($i=0;$i<10;$i++)
{
if($i%2!=0)
break;
print("$i");
}
continue command example


for($i=0;$i<10;$i++)
{
if($i%2!=0)
continue;
print("$i");
}