I read somewhere, that the guy that created PHP (sorry, don't know his name, but respect!), said that instead of
echo "some string here..."
you should use:
?>some string here<?php
However, I thought maybe switching back and forth between php and html mode would be a lot more expensive than just echoing something.
Anyway, I went along with it for years, so my big longs strings are full of <?php echo $row['somevar']; ?> statements.
Well, I've started learning ASP (no, don't shout!), and I came accross an article at coveryourasp.com saying you should just echo it all out!
I'm sure ASP and PHP are quite similar, so which should I use? 😃