Reply to Re: PHP newbie : exist short form for print() ?

Your name:

Reply:


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

[Back to original 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

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