Posted by Jerry Stuckle on 08/12/05 06:12
Steve wrote:
> 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
>
Steve,
Where does it say this is deprecated? I can't find it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|