large php sections vs. multiple php sections in html
Posted: Fri Dec 19, 2008 11:57 am
Has there been any study as to which style practice is more efficient/faster on a webserver.
HTML that looks this, with multiple php sections:
or code that looks like this with a single large php section:
HTML that looks this, with multiple php sections:
Code: Select all
<tag> blah </tag>
<?php some_php_function() ?>
<tag> blah </tag>
<tag> blah </tag>
<?php some_other_php_function() ?>
<tag> blah </tag>
Code: Select all
<tag> blah </tag>
<?php some_php_function()
echo " <tag> blah </tag>\n";
echo " <tag> blah </tag>\n";
some_other_php_function() ?>
<tag> blah </tag>