The programs below demonstrate how to break PHP outer loops: Program 1: A PHP program to display the number when the inner loop is not terminated. $j is an echo function. ” “; Program 2: A PHP program that looks for a number in an array and then exits the outer loop once it is found. The goto keyword is used to jump to a certain area of a program.