Re: Context

From: Date: Fri, 31 Jan 2003 00:18:05 +0000
Subject: Re: Context
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133712@lists.php.net to get a copy of this message
AFAIK, PHP "skips" over anything out side the <? and ?>... so yes, technically, it would be a little faster. End of the day, such a small gain could probably be made up elsewhere by optimising a function you use on every page, or something else like that. It's been said on the list many times before: Just do whicher you're more comfortable with, and whichever makes it easier for you to read/write/modify the code. I tend to run major blocks of straight HTML outside of php, and little bits inside PHP using echo. Justin on 30/01/03 7:01 PM, Boaz Yahav (berber@netvision.net.il) wrote: > HI > > I was reading this article : > http://www.devarticles.com/art/1/397/2 > And am a bit confused now. > > If I understand correctly, the author claims that : > > <?php $php_tags = "PHP Tags" ?> > Combining HTML output and > <?php echo $php_tags; ?> > tags really wastes my time. > > Runs "slightly" faster than > > <?php > $php_tags = "PHP Tags"; > echo "Never breaking out of $php_tags is much less irritating."; > ?> > > > IS this true? > Is echo more consuming than entering and exiting in and out of context? > > berber > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- > [This E-mail scanned for viruses] > >

« previous php.general (#133712) next »