I looked on the php documentation and could not find an answer for this simple problem
I need to test a variable with in ranges to return a result. I have this
switch (score) {
case 6:
result ="Beginer";
break;
case 12:
result = "Student";
break;
case 18:
result = "Wow";
break;
default:
result = "failed";
break;
}
This works but I need to use cases that would test for a range. Such as instead of
case 6:
I need
case >0 and <7:
Can anyone point me to a resource or throw me an answer
thanks