PHP delimiters <eof, and php delimiters eof
PHP is a Web programming language. In the programming process, it is inevitable that echo will be used to output large html and javascript scripts. If the traditional output method is used-output by string, there must be a large number of escape characters to escape special characters such as quotation marks in the string to avoid syntax errors. One or two parts can be tolerated, but if it is a complete html text or a 200-line JavaScript code, I think anyone will crash. This is why PHP introduces a separator-at least most of the reasons.
1. PHP delimiters act as they are, including the line feed format or something, and output something inside them;
2. Do not escape any special characters in the PHP delimiters;
3. the PHP variable in the PHP delimiter will be replaced with its value normally.
The format of the delimiters in PHP is as follows:
<Eof
......
Eof;
For example: <? Php $ js = <eof <script type = "text/javascript"> // top: redirects the entire frameset to the window. top. location. href = "$ group_url/Manager/login"; </script> eof; echo $ js;