RE: <?=$var?>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is the equivalent of <?php echo $var; ?>  it's just easier to type and read IMHO. For a while people were freaking out that they thought it would be deprecated, but that is not (nor ever will be) the case.

> -----Original Message-----
> From: Larry Martell [mailto:larry.martell@xxxxxxxxx]
> Sent: Wednesday, April 17, 2013 3:51 PM
> To: PHP General
> Subject:  <?=$var?>
> 
> Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the
> app uses this construct all over the place when building
> links:
> 
> <?=$var?>
> 
> I never could find any documentation for this, but I assumed it was some
> conditional thing - use $var if it's defined, otherwise use nothing. In 5.1.6 it
> seems to do just that. But in 5.3.3 I'm not getting the value of $var even
> when it is defined. Has this construct been deprecated? Is there now some
> other way to achieve this?
> 
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux