> 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?

This is a "feature" - there's some reason they did it like this, although I
can't locate it.  If you put a space after the ?> the line break will be
preserved.

H


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to