note 57905 added to control-structures.continue

From: Date: Tue, 18 Oct 2005 19:09:32 +0000
Subject: note 57905 added to control-structures.continue
Groups: php.notes 
Request: Send a blank email to php-notes+get-97181@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/control-structures.continue.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57905 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57905&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57905&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97181) next »