You are here: Re: <?= "Help" ?> « PHP Programming Language « IT news, forums, messages
Re: <?= "Help" ?>

Posted by Andy Hassall on 11/15/79 11:24

On 9 Aug 2005 07:40:53 -0700, "rik" <rick.huby@e-connected.com> wrote:

>I was flicking through a PHP book (one of the teach in 24 hour ones)
>and I came across something I had never seen before in PHP. It was a
>method of printing out without using the print method, it was something
>like :
>
><?= $myVar; ?>
>
>Is this an out dated method?

Well, it's deprecated, as it requires short_open_tags to be enabled.

You might have thought that <?php=$myVar?> would be the long tags equivalent,
but it doesn't work.

>Is it compatible with all versions of PHP
>(since implementation at least)?

As far as I know - certainly valid a long way back.

I believe it's partly there to make ASP programmers more comfortable when
migrating since ASP has <%=variable%>.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

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

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