Re: parsing

From: Date: Tue, 23 Jul 2002 19:17:00 +0000
Subject: Re: parsing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109132@lists.php.net to get a copy of this message
try echo "<table><tr><td><b>$somevar</b><br>$somevardesc</td></tr></table>"; which is probably better than the other two but don't quote me on that! You can just include the variables because you have used " rather than ' (I think it works for echo as well as print) "Dave At Sinewaves.Net" <eightrack@earthlink.net> wrote in message news:ELENILOLLHIDAONECKONIEAPCFAA.eightrack@earthlink.net... > Okay, > > I want to know if anybody has a clue which is more efficient, > processorwise/parsingwise: > > this: > ------ > echo > "<table><tr><td><b>".$somevar."</b><br>".$somevardesc."</td></tr></table>"; > > or this: > ------ > echo "<table><tr><td><b>{$somevar}</b><br>{$somevardesc}</td></tr></table>"; > > > I almost always use the first method (just seems more readable to me), but > with all of the discussion popping up about curly brackets, i was wondering > if it really makes a difference? Any vets out there care to put in their > $0.02? > > Dave Tichy > http://sinewaves.net/ >

« previous php.general (#109132) next »