PHP with HTML
Thursday September 13, 2007
Did you know that you can interchange between PHP and HTML in the same document? As long as the PHP is contained within <?php and ?> tags, you can have HTML anywhere else. Or, if you prefer, you can echo HTML right inside PHP! This let's you add HTML style to PHP functionality.


Comments
Yes, but is not the best thing to do. The best approach I have found so far is to use the MVC model or put simple: serach for smarty or any other templates such that you keep always separate logic from view. Cheers
I do not believe this