can someone tell me what is wrong with this code:
<?
print gurk(1);
print gurk(2);
function gurk($number){
switch ($number){
case 1:
$turk="Turkey";
break;
case 2:
$turk="Greece";
break;
}// end switch
$output=<<<HERE
if this guy is a $number<br>
then he is from $turk.
HERE;
return $output;
}// end gurk
?>
when I pull up this script in a browser, I get the following error:
Parse error: parse error, unexpected $ in /home/gregg/xwreck.com/php/gurk.php on line 28
but line 28 just has the ?>