You can do it like this:
$myVar = 50;
switch (true) {
case($myVar < 0):
// do stuff
break;
case($myVar < 10):
// do stuff
break;
case($myVar < 20):
// do stuff
break;
case($myVar < 30):
// do stuff
break;
case($myVar < 999):
// do stuff
break;
default:
// do stuff
break;
}
There are a few good example about that in the comments of the manual.