Re: PHP tags - any reasons to close ?>

From: Date: Tue, 23 Sep 2008 16:28:42 +0000
Subject: Re: PHP tags - any reasons to close ?>
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-280793@lists.php.net to get a copy of this message
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

« previous php.general (#280793) next »