PHP Switch case behavior: ranges
Would it be so bad to have ranges for switch cases?
...
switch($var)
{
case < = 9:
{
echo "less than ten";
break;
}
case 10:
{
echo "ten exactly";
break;
}
case >10 <> <15:
{
echo "a range of values? why not?";
break;
}
case >= 15:
{
echo "greater than or equal to fifteen";
break;
}
default:
{
echo "what am I not thinking of here?"
break;
}
}
...
>>