|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-12 08:14 UTC] didou@php.net
[2003-11-14 11:32 UTC] didou@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 21:00:01 2025 UTC |
Description: ------------ strnge things happen (at least undocumented) with continue control structure when using continue with and w/o semicolon in example below continue w/o semi reproduces 2 with semi as expected 0,1,3 and 4 Reproduce code: --------------- <? for($r = 0; $r < 5; ++$r) { if($r == 2) continue print "$r\n"; } ?> Expected result: ---------------- 0 1 3 4 Actual result: -------------- 2