Re: To ?> or not to ?>

From: Date: Thu, 05 Apr 2012 15:56:08 +0000
Subject: Re: To ?> or not to ?>
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-317459@lists.php.net to get a copy of this message
On 4/4/12 12:14 AM, Donovan Brooke wrote:
Robert Cummings wrote: [snip]
Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?>'?
In the generally recommended case of don't use them at the end of your file... where's the ambiguity?
http://www.php.net/manual/en/function.include.php http://www.php.net/manual/en/language.basic-syntax.phpmode.php Those seem to suggest to use them... thus the ambiguity. Donovan
Most major projects at this point leave it off, and their coding standards say to as well. The official PHP docs are generally non-commital by design, but outside of those I think it's pretty well-established to just leave it off and be happy. --Larry Garfield

« previous php.general (#317459) next »