输入banner图图片脚本导航/分类

phpprintEOF实现方法_PHP

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