Considerations for using the delimiter <<<
Delimiter identifiers must be consistent. Delimiter identifiers can be defined arbitrarily, such as echo HTML div. Try to use meaningful identifiers and follow some kind of naming convention. The opening identifier must not be followed by any character, nor any space, nor a line break followed by the text to be printed. End identifier (followed by a semicolon;) There must be no characters before or after the end of the script. That is, the end of the script must be preceded by a semicolon (;) and must not be followed by any characters (including Spaces). Examples are as follows:
/ / format
$a=<<<HTML
<table>
<tr>123<td></td><td></td><td></td></tr>
</table>
HTML;
echo $a;
2 / / format
echo <<
< TD align="center">stuno
< TD align="center">
;
echo '999999';// This line is the last additional statement to satisfy the note
Copy the code
I hope the above content can help you. Many PHPer will encounter some problems and bottlenecks when they are advanced, and they have no sense of direction when writing too many business codes. I have sorted out some information, including but not limited to: Distributed architecture, high scalability, high performance, high concurrency, server performance tuning, TP6, Laravel, Redis, Swoft, Kafka, Mysql optimization, shell scripting, Docker, microservices, Nginx, etc. Many knowledge points can be free to share with you