Hello, I would like some opinions, or hopefully facts on a few things... Maybe some people can help me out here.
A friend of mine and I were discussing which is best way to use PHP building dynamic pages, here are the 2 methods we are comparing.. They are in the simplest terms here... But try to imagine a very intesive PHP appliaction with huge MySQL queries... First Item ------------- <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><?php echo "Hello World"; ?></td> </tr> </table> Second Item ------------- <?php echo "<table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<tr>"; echo "<td>Hello World</td>"; echo "</tr>"; echo "</table>"; ?> Now I would say that the first item is the most efficient simply because you are not making PHP process the ECHO of HTML code... It's more efficient to let the browser do that since it has to interperat it anyhow. Am I correct assuming this? Thanks! Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php