Re: <?=$var?>

From: Date: Thu, 18 Apr 2013 08:31:21 +0000
Subject: Re: <?=$var?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-320879@lists.php.net to get a copy of this message
Larry Martell wrote:
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?
There WAS a period when <?= was linked to short opening tag setting, which cause a number of headaches, but currently the two are now isolated! -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.general (#320879) next »