php print EOF实现方法
2018-09-07 19:12
阅读:320
我写段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网站备份程序代码分享
下一篇:php获取excel文件数据
评论
亲,登录后才可以留言!