note 85684 added to control-structures.continue
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 12 Sep 2008 05:04:49 +0000 |
| Subject: | note 85684 added to control-structures.continue | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144356@lists.php.net to get a copy of this message | ||
The continue keyword can skip division by zero:
<?php
$i = 100;
while ($i > -100)
{
$i--;
if ($i == 0)
{
continue;
}
echo (200 / $i) . "<br />";
}
?>
----
Server IP: 216.235.15.211
Probable Submitter: 70.71.75.169
----
Manual Page -- http://www.php.net/manual/en/control-structures.continue.php
Edit -- https://master.php.net/note/edit/85684
Del: integrated -- https://master.php.net/note/delete/85684/integrated
Del: useless -- https://master.php.net/note/delete/85684/useless
Del: bad code -- https://master.php.net/note/delete/85684/bad+code
Del: spam -- https://master.php.net/note/delete/85684/spam
Del: non-english -- https://master.php.net/note/delete/85684/non-english
Del: in docs -- https://master.php.net/note/delete/85684/in+docs
Del: other reasons-- https://master.php.net/note/delete/85684
Reject -- https://master.php.net/note/reject/85684
Search -- https://master.php.net/manage/user-notes.php