The keyword break ends execution of the current for, foreach, while, do while or switch structure. When the keyword break executed inside a loop the control automatically passes to the first statement outside the loop.the following example of break statement.
<?php
$a=1;
while($a<=10)
{
echo $a;
$a++;
if($a==5)
{
break;
}
}
?>