Develop PHP Website for Learning Web Design Free Online
  Home   |   Forums   |   DevCMS
  Join   |   Log In
 
   

PHP Tutorials - Learn PHP

Tutor at Develop PHP
continue Statement
By: Adam      Created: Jul 14, 2009      Views: 1712 Tweet This Page  Post page to Facebook  Post page to Facebook

The continue statement skips execution of the current loop iteration and continues execution at the condition evaluation and then the beginning of the next iteration if an expression result is true. continue accepts an optional numeric argument which tells it how many levels of enclosing loops it should skip to the end of.

Here is an easy to undestand code example for using continue to skip loop iterations:
Learn HTML
<?php
for ($i 1$i <= 10$i++) {
    if (
$i <= 5) {
        continue; 
    }
    echo 
"$i, ";
}
?>

Develop PHP browser display window
6, 7, 8, 9, 10,




                                   That concludes this section, to continue learning PHP head back to the index


Comment on continue Statement




Search Tags:
continue   ·  Statement   ·  
 
 
Arbitrary Links and Archives
Home
Active Forums
Members
SIte News
Link To Us
Gear
2009 Forum Archive
Programming Courses
Learn HTML
Learn CSS
Learn PHP
Learn MySQL
Learn Javascript
Learn jQuery
Learn ActionScript 3.0
Learn Java
Learn XML
DevelopPHP Requires Flash Player
Get Adobe Flash player
___________________________________________

Terms of Use  •  Privacy  •  Admin Notes

©2010 developphp.com   |   Powered By FlashBuildingHolder