I Dont understand why I cant get this to work ...
$type = (INT) $_GET['type'];
$ad = NULL;
switch($type) {
case 728:
$ad = <<<EOF
hi
EOF;
break;
}
print $ad;
PHP Exits with a Parse Error - Parse error: syntax error, unexpected $end
Can you not use the Heredoc Syntax within a Switch Statement?