-5
What’s wrong? It was supposed to appear "no value", but when it starts with zero appears "very high value" in the message.
<?php
$num = 0;
switch ($num){
case($num>100);
echo'valor muito alto';
break;
case($num<80 && $num>51);
echo'valor medio';
break;
case($num==50);
echo'valor perfeito';
break;
case($num<=10);
echo'valor muito baixo';
break;
case($num==0);
echo'sem valor';
break;
}
?>
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero