Home >Backend Development >PHP Tutorial >三个尖括号,<<< 是啥意思啊该如何处理

三个尖括号,<<< 是啥意思啊该如何处理

不言
不言Original
2018-05-25 15:15:473277browse

  三个尖括号,<<< 是啥意思啊
如题,就是下面的<<<<看着有点注释的感觉,又感觉不像是注释,拜托哪位能给解释下吗?谢谢。感觉有点要保证HTML结构的意思。谢谢
$entry_display .= <<

<p class="admin_link">
<a href="{$_SERVER[&#39;PHP_SELF&#39;]}?admin=1">Add a New Entry</a>
</p>
ADMIN_OPTION;
///////////////////////////////
$entry_display .= <<<ENTRY_DISPLAY
<p class="post">
<h2>
$title
</h2>
<p>
$bodytext
</p>
</p>
ENTRY_DISPLAY;

------解决方案--------------------
代码段的意思!
------解决方案--------------------

  • PHP code
  • $somevar = <<<someword     put your code or words heresomeword;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn