Can't see anything wrong with this?


#1



Parse error: syntax error, unexpected T_STRING, expecting T_CASE or T_DEFAULT or '}' on line 11


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


#2

To anyone else having this issue. I had to refresh the console for some reason.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.