Home >Backend Development >PHP Tutorial > 求教一下大侠,<<<EOF 小弟我这样的用法是否正确啊

求教一下大侠,<<<EOF 小弟我这样的用法是否正确啊

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:42:12882browse

求教一下大侠,

<br />
$str=<<<EOF<br />
<table><tr><td><br />
for(i=0;i<count($arrkey);i++)<br />
{<br />
    <p>$arrkey[i]</p><br />
} <br />
</td><table><br />
EOF;<br />


我感觉好像不对,里面直接写变量是可以的,套语句感觉好像不行。如果不对,怎样能变通的实现呢。我的html代码好长,只能用EOF来做了,用php拼接太麻烦了。请大侠指点一二。

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