我想有条件地输出HTML来生成一个页面,那么在PHP的4+中回显多行HTML片段的最简单方法是什么?我需要使用像Smarty这样的模板框架吗?
echo '<html>', "\n"; // I'm sure there's a better way!
echo '<head>', "\n";
echo '</head>', "\n";
echo '<body>', "\n";
echo '</body>', "\n";
echo '</html>', "\n";
https://stackoverflow.com/questions/1100354
复制相似问题