作者:黑暗中的数字 | 来源:互联网 | 2018-03-16 21:34
我写段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;
?>