Possible Duplicate:
Easiest way to echo HTML in PHP?
Hello,
one simple and short question. If you have a php file that contains HTML code, is it better to do the output with echo or to write the HTML code directly into the file? For example the file some.php contains either:
<div>This is a text</div><a href="www.example.com">test</a><?php if(---) { whatever; } ?>
or:
<?php echo "<div>This is a text</div><a href=\"www.example.com\">test</a>"; if(---) { whatever; } ?>
Which version is faster, cleaner and better?