View Single Post
mcpan313
Senior Member
Join Date: Mar 2010
Old 02-11-2013 , 06:16   Re: Case ranges in switch statements.
Reply With Quote #3

Quote:
Originally Posted by Impact123 View Post
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 View Post
I suggest you use an normal if else with ranges.
In fact I think so, too
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313