20.03.2015, 20:12
Another one with switch, is
It was because you simply had it, without the default.
It's like chucking in a blank { } in the middle of code without a declaration, or a condition.
PHP код:
switch(n)
{
case 1:
{
}
case 2:
{
}
default:
{
}
}
It's like chucking in a blank { } in the middle of code without a declaration, or a condition.