> 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?
It doesn't matter. If you're doing anything worthwhile in your code, whatever style you use is going to be negligible to the final time it takes your code to parse. Use what ever is comfortable for you, whichever you understand better. Or, better yet, use a templating system so your HTML is always completely separate from your PHP. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php