I\'m hoping someone can help with this very newbie question. I\'ve just come from an ASP.Net environment where it was easy to hide or show chunks of HTML. For example: Different
Considering PHP as an embedded language you should, in order to get better readability, use the specific language forms for the "templating".
Instead of using echo you could just write the HTML outside the tags (never use
?>
which could be misleading).
Also it is suggested to use if () :
instead of if () {
, for example:
It is true
References: