note 37087 deleted from control-structures.break by sp
| From: | sp@php.net | Date: | Sun, 02 Nov 2003 22:45:34 +0000 |
| Subject: | note 37087 deleted from control-structures.break by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59662@lists.php.net to get a copy of this message | ||
Note Submitter: vinod@usa-shops.com
----
Break:
It can be used for exiting from the for loop also
====================================
<?
for($a=0;$a <=1000;$a++)
{
print "<BR>$a;"
if($a > 100)
{
print " Break from Loop ";
break;
}
}
?>
====================================
Hope this example Helps
Thanks
Vinod
http://Usa-shops.com