note 75535 added to control-structures.break

From: Date: Mon, 04 Jun 2007 16:38:21 +0000
Subject: note 75535 added to control-structures.break
Groups: php.notes 
Request: Send a blank email to php-notes+get-127192@lists.php.net to get a copy of this message
It should be noted that if you break out of a 'for' loop, the final expression is NOT executed. e.g: <?php for($i=0; $i<100; $i++) { if($i==3) break; } print $i; //3 ?> once the break statement is executed, the for loop is exited immediately. $i++ is not executed again ---- Server IP: 194.145.210.4 Probable Submitter: 88.109.126.114 ---- Manual Page -- http://www.php.net/manual/en/control-structures.break.php Edit -- https://master.php.net/note/edit/75535 Del: integrated -- https://master.php.net/note/delete/75535/integrated Del: useless -- https://master.php.net/note/delete/75535/useless Del: bad code -- https://master.php.net/note/delete/75535/bad+code Del: spam -- https://master.php.net/note/delete/75535/spam Del: non-english -- https://master.php.net/note/delete/75535/non-english Del: in docs -- https://master.php.net/note/delete/75535/in+docs Del: other reasons-- https://master.php.net/note/delete/75535 Reject -- https://master.php.net/note/reject/75535 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127192) next »