Home > Article > Backend Development > Delimiter echo<<< in PHP
Parse error: parse error, unexpected $end in..., prompting you for a syntax error; The third requirement Note that if a PHP variable appears in the middle of the delimiter, you only need to write it as you would in other strings, for example:
<<
hello Eof; In this case, you will also receive a syntax error message. Here is the correct way to write the PHP delimiter that has been tested. It contains the code of HTML and JavaScript: & & lt ;? PHP echo & lt; & lt; eoF var p='hello world'; document.writeln (p);
Eof;
?>
Reprinted Website: http://blog.sina.com.cn/s/blog_6d09b5750100w9we.html
The above introduces the delimiter echo