Re: PHP tags - any reasons to close ?>
| From: | Stut | Date: | Tue, 23 Sep 2008 12:44:31 +0000 |
| Subject: | Re: PHP tags - any reasons to close ?> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280761@lists.php.net to get a copy of this message | ||
On 23 Sep 2008, at 13:32, Martin Zvarík wrote:
I have seen some projects where people start with opening tag <?php but they DON'T close it with ?> This is especially the case of CONFIG.php files... 1) What's the reason of that?Closing the PHP tag is implicit at the end of a file to avoid extra unwanted white-space.
2) What if you would not close any 100% PHP files?Nobody would care.
3) What's the reason of making an empty space after ?> I've also seen this in some projects.Pass, but without output buffering they may have problems with cookies and other header-setting features. -Stut -- http://stut.net/