Articles → PHP → Break And Continue Statements In PHP

Break And Continue Statements In PHP






Software Requirement




  1. XAMPP is installed on your machine
  2. Any text editor like Notepad

Technical Knowledge





Break Statement








for ($i = 1; $i < 10; $i++) {
    echo $i;

    if ($i == 5)
       break;





Continue Statement








for ($i = 1; $i < 10; $i++) {
    echo $i;

    if ($i == 5)
       continue;





Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, September 3, 2014

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250