Excessive PHP Tags
Posted: Fri Dec 19, 2008 10:06 am
Is it more efficient to use a single open and close tag (<?php ?>) and output html using echo, or should many php tags be used so that html is outputted normally?.
Example:
1. <?php
if(condition)
{
echo 'some html';
}
?>
2. <?php
if(condition)
{
?>
some html
<?php
}
continue ph script
?>
Example:
1. <?php
if(condition)
{
echo 'some html';
}
?>
2. <?php
if(condition)
{
?>
some html
<?php
}
continue ph script
?>