Using <?php=$var ?> seems ridiculous, because it would be implemented only into current branches, so it would not bring compatibility with older releases... Moreover, instead of using <?=$var ?> for variable interpolation, I prefer to use the heredoc syntax, I think it's better for good looking and readable code.

For that, I don't see any reason to create any new short_open_tag like config directive...


Cyp

Ron Korving wrote:

But why doesn't <?php=$foo ?> work? If that'd work, I just might start using
<?php ?>

Ron

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Paul Reinheimer wrote:
My prefrerence would be for the interpreter to look for "<?\w" when
short tags is enabled (that was brace, question mark, white space), I
don't think i've ever come across an instance when a space or line
break wasn't used. I don't have a huge code repository handy but are
there any good counter examples live?
Thousands.  <?=$foo?> and <?echo $foo?> are both extremely common when
injection single PHP variables into forms and general HTML sections.

-Rasmus


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to