note 57905 deleted from control-structures.continue by jome
| From: | jome@php.net | Date: | Tue, 18 Oct 2005 19:26:04 +0000 |
| Subject: | note 57905 deleted from control-structures.continue by jome | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97186@lists.php.net to get a copy of this message | ||
Note Submitter: Do at not dot post
----
On page < http://www.php.net/manual/en/control-structures.continue.php
>
the comment by Lord Duran about odd numbers on < 21-Apr-2005 03:55 > should be removed, since
Lord Duran failed to understand the code correctly (probably doesn't understand '%'
correctly).
....
if (!($some_var%2))
{ // Should skip even numbers since for even numbers $some_var%2 is 0 and !0 is boolean true, and
hence when numbers are even rest of the code in the loop will be skipped.
continue;
}
....
Sincerely,
Aouie