Re: parsing
| From: | Lee Doolan | Date: | Tue, 23 Jul 2002 19:40:12 +0000 |
| Subject: | Re: parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109136@lists.php.net to get a copy of this message | ||
>>>>> "Dave" == Dave At Sinewaves Net <eightrack@earthlink.net>
>>>>> writes:
Dave> Okay, I want to know if anybody has a clue which is more
Dave> efficient, processorwise/parsingwise:
Dave> this: ------ echo
Dave>
Dave> "<table><tr><td><b>".$somevar."</b><br>".$somevardesc."</td></tr></table>";
Dave> or this: ------ echo
Dave>
Dave> "<table><tr><td><b>{$somevar}</b><br>{$somevardesc}</td></tr></table>";
Dave> I almost always use the first method (just seems more
Dave> readable to me), but with all of the discussion popping up
Dave> about curly brackets, i was wondering if it really makes a
Dave> difference? Any vets out there care to put in their $0.02?
I bet that this would beat the pants off of both:
echo '<table><tr><td><b>'. $somevar .
'</b><br>' . $somevardesc . '</td></tr></table>';
--
When the birdcage is open, | donate to causes I care about:
the selfish bird flies away, | http://svcs.affero.net/rm.php?r=leed_25
but the virtuous one stays. |