Posted by Steve on 08/11/05 14:01
On Wed, 10 Aug 2005 14:21:26 -0700, Tony wrote:
> "joes" <joes@bluewin.ch> wrote in message
> news:1123625889.813958.174580@f14g2000cwb.googlegroups.com...
>> Hello
>>
>> I am starting currently with php and I like to know if there exist a
>> short form for print out of vars as in the same way as in XSL or JSP?
>>
>> // normal
>> <a href="<? print $address; ?>"> ... </a>
>>
>> // short form ???
>> <a href="{$address}"> ... </a>
>
> You just want to insert a variable into the HTML at that location?
>
> Try:
>
> <a href="<?=$address?>">
>
> <?=$variable?> is a method of quickly inserting a variable - but IIRC there
> may be problems depending on the PHP server configuration.
This is deprecated. Use echo or print $var instead.
Steve
Navigation:
[Reply to this message]
|