In the process of PHP programming will inevitably encounter the output of large sections of HTML and JavaScript script, can be placed in a specific place, the route is not good processing, and a waste of time
If you follow the traditional output method, you will need a large number of escape strings to escape the special characters in the string.
Trouble is time-consuming, but also prone to grammatical errors
The function of PHP delimiter is to divide out an area, the format and contents of which are output as-is.
Any special characters in the PHP delimiter do not need to be escaped
Variables in PHP and delimiters are replaced with their values as normal.
<<<eof
.
Eof
If an error occurs during use,
Check if there are any spaces at the front and back of EOF, or return them directly, for example:
<?php
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
Eof
PHP delimiter <<<eof problem