When do I use the PHP constant "PHP_EOL"?
Posted
by Christian Oudard
on Stack Overflow
See other posts from Stack Overflow
or by Christian Oudard
Published on 2008-09-24T17:34:39Z
Indexed on
2010/05/18
2:30 UTC
Read the original article
Hit count: 260
php
When is it a good idea to use PHP_EOL
? I sometimes see this in code samples of PHP. Does this handle DOS/Mac/Unix endline issues? Most of the PHP I write is for generating HTML, and I use <br/>
instead of actual newlines, so haven't used this constant before.
© Stack Overflow or respective owner