There are two ways of doing what you're strying to with switch (a bad way and a good way)
Bad way (not really bad, just untidy)
switch(true) {
case $d==4 || $d==5:
$n='yes';
break;
default:
$n='No';
break;
}
Good way (utilising an overloaded case)
switch($d) {
case 4: #Overloaded case, there's no break so it flows straight into cae 5:
case 5:
$n='Yes';
break;
default:
$n='No';
}
HTH
Bubble