The PHP switch statement returns invalid output :
$cond = "Night";
switch($cond){
case "Morning":
case "Night":
$name = "Good";
case "Morning" :
echo $name." Morning";
break;
case "Night" :
echo $name." Night";
break;
}
Output: Good Morning
Expected: Good Night
Can someone help me with this?