Does anyone know of any statistics that indicate whether or not it is more efficient to use the print function to display HTML within PHP tags vs. ending the script tags everytime you need HTML output?
I'm not looking for opinions on whether or not one would be easier to read or easier to program - just concrete evidence that one has better performance.
Example:
Option 1 -
<?
if (x == 'green')
{ print('<font color="#336600">sample</font>'); }
else
{ print('<font color="#000000">sample</font>'); }
?>
Option 2 -
<?
if (x == 'green') {
?>
<font color="#336600">sample</font>
<?
}
else {
?>
<font color="#000000">sample</font>
<?
}
?>
Thanks in advance.