note 95620 added to control-structures.continue

From: Date: Tue, 12 Jan 2010 23:08:44 +0000
Subject: note 95620 added to control-structures.continue
Groups: php.notes 
Request: Send a blank email to php-notes+get-164893@lists.php.net to get a copy of this message
Example regarding the condition at the end of the loop and continue: <?php $i = 0; do { printf('%d ', $i); continue; } while( ++$i < 10); // Output: 0 1 2 3 4 5 6 7 8 9 ?> It gets executed all the time regardless that continue is placed before the while() statement. That does not get skipped. ---- Server IP: 69.147.83.197 Probable Submitter: 79.238.114.26 ---- Manual Page -- http://www.php.net/manual/en/control-structures.continue.php Edit -- https://master.php.net/note/edit/95620 Del: integrated -- https://master.php.net/note/delete/95620/integrated Del: useless -- https://master.php.net/note/delete/95620/useless Del: bad code -- https://master.php.net/note/delete/95620/bad+code Del: spam -- https://master.php.net/note/delete/95620/spam Del: non-english -- https://master.php.net/note/delete/95620/non-english Del: in docs -- https://master.php.net/note/delete/95620/in+docs Del: other reasons-- https://master.php.net/note/delete/95620 Reject -- https://master.php.net/note/reject/95620 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164893) next »