INTERRUPTING LOOPS(break and continue) IN PHP
1. Break keyword
The PHP break keyword is used to terminate the execution of a loop prematurely.
Once break statement executed , it immediately terminates the loop and no further iterations are made.
In the following example the condition test becomes true when the counter value reaches five: