Re: PHP tags - any reasons to close ?>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-09-23 at 14:37 +0100, Michal Sokolowski wrote:
> Hi,
> 
> First time I've seen code without closing tag is when I've read about Zend
> Framework and bellow is what they say about it.
> 
> "For files that contain only PHP code, the closing tag ("?>") is never
> permitted. It is not required by PHP, and omitting it prevents the
> accidental injection of trailing whitespace into the response. "

Support for omitting the closing PHP tag is a "feature". Search the
archives if you need verification.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux