Talking from a \'best practice\' point of view, what do you think is the best way to insert HTML using PHP. For the moment I use one of the following methods (mostly the lat
The most important consideration is keeping the logic separate from the presentation - less coupling will make future changes to both much more straightforward.
You might even want to consider using some sort of templating system like smarty.