Re: PHP 6.0 Wishlist
| From: | Cyprien Nicolas | Date: | Wed, 31 Aug 2005 14:14:01 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18605@lists.php.net to get a copy of this message | ||
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" <rasmus@lerdorf.com> wrote in message news:43114C03.1070902@lerdorf.com...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