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: [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]

Reply via email to