continue with next case
Inside the case() of a switch() or check() block, continue with next case stops executing further statements in the current case block and continues with the next case block regardless of the value checked.
Indirect parameter passing is disabled
0
for (a[] = 1, a[] <= 3, a[]++)
{
print ( "Switch Loop ",a[], ": " );
switch( a [] )
{
case (1)
{
print("Case 1; ");
continue with next case;
print("Skipped; "); // This statement will not be executed:
}
case (2)
{
print("Case 2; ");
continue case;
}
case (3)
{
print("Case 3; ");
break case;
}
}
echo;
}
Switch Loop 1: Case 1; Case 2;
Switch Loop 2: Case 2;
Switch Loop 3: Case 3;