我写段php代码如下:
复制代码 代码如下:
<?
if(test case)
print<<<EOT
<....html code....>
EOF;
else
print<<<EOT
<....html code....>
EOF;
?>
如上写法是不可以的,需要把EOF标识符顶格:
复制代码 代码如下:
<?
if(test case)
print<<<EOT
<....html code....>
EOF;
else
print<<<EOT
<....html code....>
EOF;
?>
最后
以上就是眯眯眼鸭子最近收集整理的关于php print EOF实现方法的全部内容,更多相关php内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复