December 23, 2015 HomePHP QuestionsHow to Break For Loop in PHP How to Break For Loop in PHP By Krishnaa PHP Questions 0 Comments To break for loop in PHP when a certain condition is met, we make use of break statement. <?php for ($i = 0; $i <= 10; $i++) { if($i == 5) { echo "The number is $i. <br>"; break; } } ?> You May Also Like: How to Break/Exit For Loop in C#/CSharp While Loop Break Statement Do While Loop For Loop