You are here: Re: PHP newbie : exist short form for print() ? « PHP Programming Language « IT news, forums, messages
Re: PHP newbie : exist short form for print() ?

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
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация