|
Senior Member
|
02-11-2013
, 06:16
Re: Case ranges in switch statements.
|
#3
|
Quote:
Originally Posted by Impact123
I think the closest you can get is this.
PHP Code:
switch(150)
{
case 1,2,3,4,5,6,7,8,9,10:
{
}
default:
{
}
}
|
Thanks, I know this, but if the ranges so large...
Quote:
Originally Posted by Impact123
I suggest you use an normal if else with ranges.
|
In fact I think so, too
__________________
sorry, for my poor english.
|
|
|
|