Forum Moderators: coopster
<?phpecho "?>
all the HTML/Whatever you could hope for. This is very useful with JS.
<?php ";?>
Is perfectly legit. However, I suggest using more include()'s as it is both more clean and portable (you can make changes application wide really easily with includes). Remember that the difference between print() and echo() is multiple lines. I see a lot of newbies do something like:
<?phpprint "aaa";
print "bbb";
print "ccc";
print "ddd";
print "eee";
?>
Unless you get paid by the character, don't do it. Multi-line echo's are smaller (file size wise), faster to type, and faster to execute (less overhead).