php print EOF实现方法 _爱资料
主页 > 编程资料 > PHP >
发布时间:2015-12-29 作者:网络 阅读:173次
我写段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;
?>
关键字词: