Re: abreviating echo commands
| From: | - Edwin - | Date: | Tue, 16 Sep 2003 05:14:58 +0000 |
| Subject: | Re: abreviating echo commands | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162706@lists.php.net to get a copy of this message | ||
Hi,
Kris Yates <kris@2binteractive.com> wrote:
> Hello..
>
> I forget where but I found some source awhile back that abbreviated
> echo. It was something like
> <?=$var;?> which worked the same as <? echo $var; ?>. Maybe it was
> <?\=$var;?>.. Obviously I dont remember.. which is why I am asking..
> :) Does anyone have a link to something that talks about how to
> abbreviate commands in PHP?
>
> Well.. not how to.. but just a list of abbreviations?
>
> Is echo the only one that has an abbreviation? I couldn't find anything
> in the manual.. any leads?
Ternary conditional operator:
http://www.php.net/manual/en/language.expressions.php
echo()'s shortcut syntax:
http://www.php.net/manual/en/function.echo.php
The only two that I know of... I think.
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/