note 118758 deleted from control-structures.continue by salathe
| From: | salathe@php.net | Date: | Mon, 01 Feb 2016 12:50:50 +0000 |
| Subject: | note 118758 deleted from control-structures.continue by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204828@lists.php.net to get a copy of this message | ||
Note Submitter: kamil dot derkacz at o2 dot pl
----
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.