PHP Break

break ends execution of the current for, foreach, while, do-while or switch structure.
<?php
 $array = array('One', 'Two', 'Three', 'Four', 'Five');
 foreach ($array as $item) 
   {
     if ($item == "Three")
      {
         break;
      }
     echo "$item<br />";
   }
 ?>

Output:

One
Two