Re: PHP Tag question
| From: | Hugh Bothwell | Date: | Wed, 15 May 2002 20:54:39 +0000 |
| Subject: | Re: PHP Tag question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97816@lists.php.net to get a copy of this message | ||
"Matthew Walker" <mwalker@mountaintopherbs.com> wrote in message
news:000B4647655DE145B79DE08CE0270EA3656D@SBS-PDC.MTH.local...
> I'm writing a coding standards document for our programmers,
> and I need to know if the 'echo' shortcut PHP tags are always
> on, or if we need to assume they might not be on.
>
> (By echo shortcut, I mean this syntax: <?=$variable?>)
Whether short-form tags are available or not is controlled
by the 'short_open_tag' setting in php.ini.
If your files will ever contain a mixture of XML and PHP,
it is best to stick to the long opening tag, as the <?
shortform cannot distinguish between <?php and <?xml