..oO(703designs)
>That's weird and interesting.
It's documented behaviour. The example was taken from the manual and
describes a situation which you should avoid.
Maybe it becomes clearer with a little rearrangement, it's still the
same code:
<?php
for ($i = 0; $i < 5; ++$i) {
if ($i == 2) {
continue print "$i\n";
}
}
?>
Since print is a special language construct and always returns 1, the
above is equivalent to
<?php
for ($i = 0; $i < 5; ++$i) {
if ($i == 2) {
print "$i\n";
continue 1;
}
}
?>
http://www.php.net/manual/en/control...s.continue.php
>You're right, you need the semicolon.
Yep.
Micha