All On Your Own!


what seems to be the problem here? The error is:
Parse error: syntax error, unexpected T_DEFAULT on line 18
Line 18 is: echo "alpha is 300";

Here is the full code:
$alpha = 300;

switch ($alpha) {
    case 120:
        echo "alpha is 120";
    case 250:
        echo "alpha is 250";
    case 300:
        echo "alpha is 300";
    echo "alpha is unknown";


Your code is correct. Please try to refresh the exercise or use different browser.


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