You are here: Re: newbie question: <?=$variable?> yields no output « PHP Programming Language « IT news, forums, messages
Re: newbie question: <?=$variable?> yields no output

Posted by macca on 09/28/07 19:23

> People love to bash short tags, but using <?php echo $blah; ?> every
> time you want to output a variable in a template makes for unwieldy
> template code. PHP has a shorter, more expressive, and semantically
> equal method of achieving the same; why not use it?



Short tags are turned off by default now in up to date installs of
php. This is because the short opening tag <? is used to start an xml
file, so the short tag is now deprecated in php in favour of the full
<?php which you should ALWAYS use.


Paul

 

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

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