I really can't figure this out


#1


<?php
     $me = 17
     
      switch ($me) :
         case 1:
             echo "I'm 1";
            break;
        case 14:
            echo "I'm 14";
            break;
        case 17:
            echo "I'm 17";
            break;
        default:
            echo "none of the above";
     endswitch;       
        
    ?>

I get Parse error: syntax error, unexpected T_SWITCH on line 10


#2

The only issue you are having is on this line

you are missing a semicolon.
PHP is strict about those


#3

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