A break statement that is in the outer part of a program (e.g. not in a control loop) will end the script. This caught me out when I mistakenly had a break in an if statement
i.e.
<?php 
echo "hello";
if (true) break;
echo " world"; 
?>
will only show "hello"

 
                       
               
 
			 
                 add a note
 add a note