Loop Liberator: Harnessing Breaks for Precision and Progress We looked at the break statement when we covered switch statements. In that case, the break statement was used to end the execution of the switch statement. The break statement isn’t exclusive to the switch statement: it can be used in loops as well. Let’s look at how the break statement ends execution in each of the loops: while , do-while , for , and foreach . We’ll start off by creating an array that the loops will iterate through. <?php $favorite_programming_language = [ “java”, “javascript”, “php”, “c”, “c#”, “c++” ]; ?> The goal of each loop will be to iterate through the $favorite_programming_language array and