I have a php script below: I can write it this 1st way:
echo"
<table class='fom'><tr class='xbo'><td class='ftd'>Name</td><td><input size='30' maxlength='30'></td></tr></table>"
<table class='fom'><tr class='xbo'><td class='ftd'>Company</td><td><input size='30' maxlength='30'></td></tr></table>"
<table class='fom'><tr class='xbo'><td class='ftd'>Contact</td><td><input size='30' maxlength='12'></td></tr></table>";
I also can write it this 2nd way:
$tb = "<table class='fom'><tr class='xbo'><td class='ftd'>";
$tZ = "</td></tr></table>";
echo"
$tb."Name</td><td><input size='30' maxlength='30'>".$tz.""
.$tb."Company</td><td><input size='30' maxlength='30'>".$tz.""
.$tb."Contact</td><td><input size='30' maxlength='12'>".$tz."";
I prefer 2nd method cause it looks more tidy and wont squeeze my screen. The question is:
1) Will 2nd method slow down the PHP parser, I mean if the request towards this sript is very high...say milions/s.
2) Is there any way I can check the speed performance of this script parsing on my MAMP?
Need some expert opinions.