Re: Use <?= instead of <%=

From: Date: Mon, 15 Jan 2001 02:57:05 +0000
Subject: Re: Use <?= instead of <%=
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34544@lists.php.net to get a copy of this message
I like this one and I think I'll comment on it... > > can people give me opinions as to why <?= is so bad? > > a. PHP4 specific > b. Many do not know what it is / what it does > c. Will not work when short_tags are disabled > d. Does not follow PEAR standards (ed. guess) > e. Looks funny / weird / out of place (opinion) > a. You ought to be using an up-to-date version anyway... b. Many should learn what it is / what it does ;) c. You can enable short tags; conflicts / reasons not to are rare d. PEAR is for distributing code, in which case a & c matter & the short tags should not be used e. Looks no funnier than <? echo $myVar ?> or <? getMyVar() ?> (IMHO of course ;) ) > > On Sun, 14 Jan 2001, Alex Black wrote: > > > can people give me opinions as to why <?= is so bad? > > > > me = love : <?= > > Don't mean to bring this into some kind of unending debate like so many things seem to get, but I have to agree with Alex. There are a very large number of applications where using <?= is completely acceptable. I think we tend to lose sight of that when we start talking about huge web apps... we're not all building huge web apps... and in fact, a lot of us benefit from the quick coding time of being able to insert variables with <?=. My .02 :) --Toby

« previous php.general (#34544) next »