Trying to come up with a basic way to display code in a way that would be nicely maintainable, I thought of doing something like this:
echo htmlfunction('a',array('href'=>'http://google.com'),'google');
to generate:
<a href="http://google.com">google</a>
this would use as a global scale function to output all html tags. that way, if I ever wanted to change the way my html is displayed, I could easily do it with one tweak.
does using this kind of outputting mean a grave loss of agility in performance?
thanks.