http://php.net/manual/en/control-structures.continue.php
Changelog says that as of 5.4, following change happened: Removed the ability to pass in variables (e.g., $num = 2; continue $num;) as the numerical argument.
Why on earth would they do that?
So, basically, this is now invalid:
for ($i = 0; $i < 10; $i++) {
$num = 5;
continue $num;
}
Am I understanding this correctly? Why would they do that? I just cannot think of a reason.
here in the above example from PHP Manual the continue skips the
echo "This never gets output.<br />\n";
andecho "Neither does this.<br />\n";
statement and thecontinue 3;
denotes the loop number to continuethe above will skip the printing of
$num