Can't see anything wrong with this?


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

<!DOCTYPE html>
    $fruit = "Apple";
    switch ($fruit) {
        case 'Apple':
            echo "Yummy.";
            echo "That's not even the fruit!";


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


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