--TEST-- PHP Spec test generated from ./statements/jump/continue.php --FILE-- 0) { if ((($j * $i) % 2) == 0) { $j -= 3; continue 1; } echo ($j * $i)." is odd\n"; $j -= 5; } echo "In for loop\n"; } for ($i = 10; $i <= 40; $i +=10) { echo "\n\$i = $i: "; switch($i) { case 10: echo "ten"; break; case 20: echo "twenty"; break 1; case 30: echo "thirty"; break; } echo "\nJust beyond the switch"; } echo "\n----------\n"; for ($i = 10; $i <= 40; $i +=10) { echo "\n\$i = $i: "; switch($i) { case 10: echo "ten"; break; case 20: echo "twenty"; break 2; case 30: echo "thirty"; break; } echo "\nJust beyond the switch"; } echo "\n----------\n"; for ($i = 10; $i <= 40; $i +=10) { echo "\n\$i = $i: "; switch($i) { case 10: echo "ten"; break; case 20: echo "twenty"; continue 1; case 30: echo "thirty"; break; } echo "\nJust beyond the switch"; } echo "\n----------\n"; for ($i = 10; $i <= 40; $i +=10) { echo "\n\$i = $i: "; switch($i) { case 10: echo "ten"; break; case 20: echo "twenty"; continue 2; case 30: echo "thirty"; break; } echo "\nJust beyond the switch"; } echo "\n----------\n"; --EXPECT-- 1 is odd 3 is odd 5 is odd 17 is odd 9 is odd 1 is odd In for loop In for loop 51 is odd 27 is odd 3 is odd In for loop In for loop 85 is odd 45 is odd 5 is odd In for loop $i = 10: ten Just beyond the switch $i = 20: twenty Just beyond the switch $i = 30: thirty Just beyond the switch $i = 40: Just beyond the switch ---------- $i = 10: ten Just beyond the switch $i = 20: twenty ---------- $i = 10: ten Just beyond the switch $i = 20: twenty Just beyond the switch $i = 30: thirty Just beyond the switch $i = 40: Just beyond the switch ---------- $i = 10: ten Just beyond the switch $i = 20: twenty $i = 30: thirty Just beyond the switch $i = 40: Just beyond the switch ----------