|
Posted by Andy Hassall on 10/05/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]
|