Kohana与Zend Framework等框架都是推荐省略收尾的。
ZF的官方文档:
http://framework.zend.com/manual ... ile-formatting.html
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. |