What's wrong in this?


#1







<?php
$name = "Suyash"

switch ($name) :
     case "Sarthak":
         echo "Not You";
         break;
     case "Suyash" :
         echo "Hello!";
         break;
     case "Sanjeev":
         echo "Not You";
         break;
     default:
         echo "Ok!";
endswitch;

?>
</body>

'

I'm getting this error!
Parse error: syntax error, unexpected T_SWITCH on line 10


#2

Hi this line

$name = "Suyash"

put a semicolon at then end