> 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)
Those are my personal reasons.
Philip
--
Philip Olson
http://www.cornado.com/
On Sun, 14 Jan 2001, Alex Black wrote:
> can people give me opinions as to why <?= is so bad?
>
> me = love : <?=
>
> :)
>
> _a
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
> > From: [EMAIL PROTECTED] (Philip Olson)
> > Newsgroups: php.general
> > Date: 13 Jan 2001 12:18:08 -0800
> > Subject: Re: [PHP] Use <?= instead of <%=
> >
> > My understanding is :
> >
> > 1. <?= is essentially php4+ specific
> > 2. Will not work if short_tags_open setting is off (in php.ini) because of
> > the fact that <? is a short tag.
> >
> > Regarding its relation to the ASP counterpart, it is not directly related
> > to <%= as that is an ASP tag which refers to the asp_tags setting which if
> > on, <%= will work, if not on, it will not. Information and references to
> > this can be found here :
> >
> > http://www.php.net/manual/language.basic-syntax.php
> > http://www.php.net/manual/en/configuration.php#ini.asp-tags
> > http://www.php.net/manual/en/configuration.php#ini.short-open-tag
> >
> > I've personally never tried asp tags. Earlier within this thread , the
> > following php internals were posted by Jim Winstead :
> >
> > http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.3&r2=1.4
> > http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.6&r2=1.7
> >
> > All in all, if others will be playing with your scripts, don't use asp
> > style as usually this is usually turned off. Use of <?= is mildly
> > dangerous (and debated, my view is 'bad') to use given the reasons above.
> >
> >
> > Philip Olson
> > http://www.cornado.com/
> >
> > On 13 Jan 2001, Arcady Genkin wrote:
> >
> >> I have noticed that <?= works just as well as <%=. Since this is not
> >> in documentation, how safe is it to use it?
> >>
> >> Many thanks,
> >> --
> >> Arcady Genkin
> >> Don't read everything you believe.
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]