NYCPHP Meetup

NYPHP.org

[nycphp-talk] linebreak not emitted after ?>

Michael B Allen ioplex at gmail.com
Wed Feb 13 17:08:06 EST 2008


This is just a curious question but consider the following trivial script:

#!/usr/bin/php -q
<?php
echo 'hello';
?>
end

Why does this ouput:

$ ./test.php
helloend

and not:

$ ./test.php
hello
end

Meaning the linebreak after the ?> is not emitted.

Is there some kind of special rule about this or is it just a quirk?

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/



More information about the talk mailing list