NYCPHP Meetup

NYPHP.org

[nycphp-talk] Closing ?> tag

Brian Pang bpang at bpang.com
Tue May 20 16:50:46 EDT 2003


You guys can do what you want, but I end every php file with 

return;?>

with absolutely nothing after the closing tag...

as for editors that add stuff at the ends of files...  why would you
ever want to let it do that?

:)



> Hans Zaunere wrote:
> 
> >And:
> >
> >http://bugs.php.net/bug.php?id=21891
> >
> >which probably could have been received a little better  :)
> >
> >  
> >
> Yeah, I just left my two cents there-- the documentation for include() 
> specifically states that end tags are required. Lopping them off is a 
> style decision that depends on some as-yet undocumented behavior.
> 
> It seems like a "best practice" for includes that are purely PHP, but is 
> it a bug or a feature?
> 
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 
> 
> 






More information about the talk mailing list