note 118758 added to control-structures.continue

From: Date: Sun, 31 Jan 2016 18:23:10 +0000
Subject: note 118758 added to control-structures.continue
Groups: php.notes 
Request: Send a blank email to php-notes+get-204816@lists.php.net to get a copy of this message
Hi, Putting the code: <?php for($i = 0 ; $i < 10 ; $i++) { if( $i%2 == 0 ) { continue print $i."<br />"; } } ?> returns the error: Fatal error: 'continue' operator with non-constant operand is no longer supported I work on PHP 5.5.30. It wasn't mentioned in the manual that it's not supported. ---- Server IP: 72.52.91.14 Probable Submitter: 217.173.198.237 ---- Manual Page -- http://php.net/manual/en/control-structures.continue.php Edit -- https://master.php.net/note/edit/118758 Del: integrated -- https://master.php.net/note/delete/118758/integrated Del: useless -- https://master.php.net/note/delete/118758/useless Del: bad code -- https://master.php.net/note/delete/118758/bad+code Del: spam -- https://master.php.net/note/delete/118758/spam Del: non-english -- https://master.php.net/note/delete/118758/non-english Del: in docs -- https://master.php.net/note/delete/118758/in+docs Del: other reasons-- https://master.php.net/note/delete/118758 Reject -- https://master.php.net/note/reject/118758 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204816) next »