?>HTML<? is almost double as fast according to some stats I saw a while ago (at phpbeginner.com).. But that's compared to "HTML", using singlequotes is faster ('HTML')... But I haven't confirmed those stats... -- // DvDmanDT MSN: dvdmandt€hotmail.com Mail: dvdmandt€telia.com ########################## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ########################## "Joe Harman" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > 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