View Single Post
(#8 (permalink))
Old
weishun weishun is offline
Senior Member
weishun is on a distinguished road
 
Posts: 223
Join Date: Feb 2009
Default 03-05-2009, 03:02 PM

Quote:
Originally Posted by Megalith View Post
as aPhpHelper says the use of includes is not the most efficient way of handling simple html code. the fastest way is to not use the php interpreter at all unless you need it, hence my suggestion above which exits the php and sending the html direct to the browser rather than parsing it through a template or having function calls. in that sense it is the most efficient way of outputting html
The original post reads, in part:
Quote:
the cleanest and most efficient way of storing chunks of HTML for output
So, we're storing chunks of HTML and they're for output. That being the case, it's likely the "chunks" will be "output" more than once. If so, entering the HTML manually is neither "clean" nor "efficient".

The post title:
Quote:
cleanest way to seperate HTML code in PHP
makes it clear, I think, that the "output" is to "PHP".

Depending on the number of "chunks", there may be "cleaner" more "efficient" methods of "storing" them but, AFAIK, there isn't for "outputting" them, in "PHP". If there is, I'd like to see it as it'd help me out a lot.
Reply With Quote