note 93919 added to control-structures.while

From: Date: Tue, 06 Oct 2009 21:48:41 +0000
Subject: note 93919 added to control-structures.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-161416@lists.php.net to get a copy of this message
Just a note about using the continue statement to forego the remainder of a loop - be SURE you're not issuing the continue statement from within a SWITCH case - doing so will not continue the while loop, but rather the switch statement itself. While that may seem obvious to some, it took a little bit of testing for me, so hopefully this helps someone else. ---- Server IP: 69.147.83.197 Probable Submitter: 216.246.132.229 ---- Manual Page -- http://www.php.net/manual/en/control-structures.while.php Edit -- https://master.php.net/note/edit/93919 Del: integrated -- https://master.php.net/note/delete/93919/integrated Del: useless -- https://master.php.net/note/delete/93919/useless Del: bad code -- https://master.php.net/note/delete/93919/bad+code Del: spam -- https://master.php.net/note/delete/93919/spam Del: non-english -- https://master.php.net/note/delete/93919/non-english Del: in docs -- https://master.php.net/note/delete/93919/in+docs Del: other reasons-- https://master.php.net/note/delete/93919 Reject -- https://master.php.net/note/reject/93919 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161416) next »