|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [1998-09-15 01:26 UTC] zeev
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 15:00:01 2025 UTC | 
I'm not sure that this is a bug, or a feature, but either way it should probably be documented: The following code segment does not work as a "C" programmer would assume: for ($i=1; $i<=10; $i++) { switch($i) { case 1: case 3: case 5: case 7: case 9: break; case 2: case 4: case 6: case 8: case 10: continue; } print("$i is Odd\n"); } If you change the "continue" to be a "continue 2", the code works correctly. Because a continue (again, in C) does not apply to switch statement (only whiles and fors), this does not seem correct.