"Matthew Walker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php