Home >Backend Development >PHP Tutorial >php print EOF实现方法_PHP

php print EOF实现方法_PHP

WBOY
WBOYOriginal
2016-06-01 12:23:03779browse

我写段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;
?>

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