title: What is the benefit of \n and PHP_EOL in PHP?
body: <p>I'm trying to output a newline character in PHP that gets viewed in a web browser. I can only manage it by using the <code>&lt;br /&gt;</code> tag.</p>
  
  <p>When I use <code>\n</code>, nothing occurs, so what is the benefit of using <code>\n</code>? Also what is the benefit of <code>PHP_EOL</code>? When I concatenate it to a string, just a space is printed not a newline.</p>