Re: echo or print

From: Date: Sat, 22 Nov 2003 05:54:29 +0000
Subject: Re: echo or print
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-170657@lists.php.net to get a copy of this message
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote: > * Thus wrote Wouter van Vliet (wouter@springt.nl): > > > > Point is, which of the inline printing style is preferred by you guyes. I > > tend to use <?=$Var?> a lot, since it reads easier but get into struggles > > with myself when I do that multiple times in a row. > > 1. Turn off short_open_tags > 2. Turn off asp_tags > 3. use <?php echo $Var?> Personally, I don't use inline since I prefer templating, but when i do this kind of code for other projects where I don't get the choice to use a templating system, then I use the above style also. I find <?=$Var?> to be cryptic even if shorter. Besides I'm all for code consistency, if I'm going to break into PHP mode for multiple lines, then I do the same for a single line. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#170657) next »