Continue statement : Continue : Language Basics PHP Source Code


PHP Source Code » Language Basics » Continue »

 

Continue statement



<?php
   $usernames = array("A","B","C","nate","missing","tom");
   for ($x=0; $x < count($usernames); $x++) {
      if ($usernames[$x== "missing") {
         continue;
      }
      echo "Staff member: $usernames[$x] <br />";
   }
?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Continue