Re: = to print
| From: | Zeev Suraski | Date: | Fri, 01 Sep 2000 13:41:55 +0000 |
| Subject: | Re: = to print | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14807@lists.php.net to get a copy of this message | ||
That's not accurate. = is not a printing operator.
However, there's an open tag that's designed to shorten printings of
variables/expressions inside HTML:
<?= $foo ?>
Would print out the value of $foo. You can supply a complex expression
there as well.
Zeev
On Fri, 1 Sep 2000, Matt Williams wrote:
> Hi
>
> I'm sure I have seen that in PHP4 you can use an equals sign to print a
> variable ie. =$var1 would print $var1.
>
> Howeve I've tried to do this with no success.
> Can someone point me in the right direction please, I've had a scan of the
> php.ini but can't seem to see anything.
>
> Cheers
>
> M@
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/