1 Answer
Any easy procedure for echo HTML in PHP?
591 Views
kaneh
Punditsdkoslkdosdkoskdo
Any easy procedure for echo HTML in PHP?
I want to conditionally output HTML to generate a page, so what's the easiest way to echo multiline snippets of HTML in PHP 4+? Would I need to use a template framework like Smarty?
echo '<html>', "
"; // I'm sure there's a better way!
echo '<head>', "
";
echo '</head>', "
";
echo '<body>', "
";
echo '</body>', "
";
echo '</html>', "
";