Home >php教程 >php手册 >php print EOF实现方法

php print EOF实现方法

WBOY
WBOYOriginal
2016-06-13 12:24:031065browse

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