Switch Syntax


#1



<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
    <?php
    $fruit = "Apple";
    
    switch ($fruit) {
        case 'Apple':
            echo "Yummy.";
            break;
        default:
            echo "Not yummy";
    }
    
    ?>
    </body>
</html>

((This is my code it isnt working if you see anything wrong please let me know))


#2

Worked perfectly fine for me, refresh your browser maybe?