Skip to main content
replaced http://us3.php.net with https://www.php.net
Source Link

When is it a good idea to use PHP_EOLPHP_EOL?

I sometimes see this in code samples of PHP. Does this handle DOS/Mac/Unix endline issues?

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?

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?

deleted 129 characters in body
Source Link
Pacerier
  • 90.6k
  • 112
  • 388
  • 651

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.

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.

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?

edited tags
Link
hippietrail
  • 17.4k
  • 21
  • 115
  • 181
Source Link
Christian Oudard
  • 50.4k
  • 25
  • 71
  • 70
Loading