Re: Re: equivalent of asp's <%= strTest %>
| From: | Philip Olson | Date: | Sat, 07 Apr 2001 16:21:16 +0000 |
| Subject: | Re: Re: equivalent of asp's <%= strTest %> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47565@lists.php.net to get a copy of this message | ||
PHP does have an equivelent, as shown by Shaun :
<?=$var?>
Things to keep in mind :
1. Is PHP4+ specific
2. Won't work if short_open_tag setting is off (in php.ini)
- One reason to turn this off, to enable XML support
3. Doesn't follow up-and-coming PEAR coding standards
And as you've seen, many don't even know what <?= is. You'll find zealots
on both sides of this use, the choice is yours. ;-)
Regards,
Philip
On Sun, 8 Apr 2001, shaun wrote:
>
> I haven't done asp in a while so if this just shows the var's value then you
> just replace % with ?
>
> <?= $hi ?>
>
> On Saturday 07 April 2001 11:00, Alexander Skwar wrote:
> > So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100:
> > > Is there an equivalent in PHP of the following code:
> > >
> > > equivalent of asp's <%= strTest %>
> >
> > Uhm - what does this strange line do??
> >
> > Alexander Skwar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>