NYCPHP Meetup

NYPHP.org

[nycphp-talk] linebreak not emitted after ?>

Allen Shaw ashaw at polymerdb.org
Wed Feb 13 17:17:47 EST 2008


Michael B Allen wrote:
> the linebreak after the ?> is not emitted.
>
> Is there some kind of special rule about this or is it just a quirk?
>   
Part of PHP syntax.  
<http://www.php.net/manual/en/language.basic-syntax.php> says:
"when PHP hits the ?> closing tags, it simply starts outputting whatever 
it finds (except for an immediately following newline - see instruction 
separation) until it hits another opening tag"

Not that I can tell you /why/ they do it this way.

- Allen


-- 
Allen Shaw
slidePresenter (http://slides.sourceforge.net)




More information about the talk mailing list