首页  >  文章  >  后端开发  >  php print EOF实现方法_PHP

php print EOF实现方法_PHP

WBOY
WBOY原创
2016-06-01 12:23:03722浏览

我写段php代码如下:
复制代码 代码如下:

if(test case)
print<....html code....>
EOF;
else
print<....html code....>
EOF;
?>

如上写法是不可以的,需要把EOF标识符顶格:
复制代码 代码如下:

if(test case)
print<....html code....>
EOF;
else
print<....html code....>
EOF;
?>

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn