Greater/Lesser than a Numeral (PHP Switch)

Thanks, but there’s only one mention of a greater than/lesser than value on that page…


<?php
switch ($i) {
case 0:
case 1:
case 2:
    echo "i is less than 3 but not negative";
    break;
case 3:
    echo "i is 3";
}
?>

I tried a lame experiment to change it to a switch that says “anything less than 250”…


switch ($Width1)
{
 case 0-249:
 echo "Width is less than 250";
 break;

 default:
 echo 'DEFAULT';
 break;
}

But it doesn’t work.

The Manual has a page of “Comparison Operators,” with $a > $b apparently working with IF functions. Is there a way to adapt this to a PHP switch?

Thanks.