I want to use PHP commands in <<< mode to echo out variables. When I try to use <?PHP and ?> tags to enclose the echo command it gives me an error. How can I fix this?
If you want to use variables you just put $variablename and it will change it Check out the manual for more info http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
<?php echo <<<mode hey see this works?, make sure you have no spacing when you close it... especially if you format it... mode; ?> PHP: