Originally posted by lprocks
right on... thanks echo
oh and i didn't know about the <?=$var?> thing either...
can you do this?
<?php=$var?>
No, it gives a parse error (try it and see).
All my code uses <?PHP to escape from HTML, I didn't know you could use just <? for the longest time and now I just use <?php by habit.
Probably best to stay with <?php...?> actually; mainly because <?...?> already has a meaning in XML for things like version declaration and stylesheeting, and in future you may want PHP to generate XML documents. Could lead to a bit of grief and irritating workarounds otherwise (I've actually turnd ASP and short tags off in my configuration).