View Single Post
(#1 (permalink))
Old
tester0027's Avatar
tester0027 tester0027 is offline
Junior Member
tester0027 is on a distinguished road
 
Posts: 12
Join Date: Jan 2009
Post cleanest way to seperate HTML code in PHP - 02-09-2009, 06:58 AM

I am just wondering what is peoples opinions regarding the cleanest and most efficient way of storing chunks of HTML for output

like for example i presently do it like this

function table(){
echo <<< HTML
<table>
<tr>
<td>Stuff here</td>
</tr>
</table>
HTML;
}


I am just interested to hear how everyone stores their HTML for output in their scripts. I want to maintain the HTML's tabbing but that looks like an impossibility, with each function each table tabbing code out further...
Reply With Quote
Sponsored Links