title: PHP removes line breaks when using POST
body: <p>I have form that uses POST to send information to PHP script. PHP reads <code>$content</code> and saves it to <code>file.txt</code>, and also displays it on browser using the following code:</p>
  
  <pre><code>$content = $_POST['content'];
  
  file_put_contents("file.txt", $content);
  echo $content;
  </code></pre>
  
  <p>If I use line breaks in form, then <code>file.txt</code> contains them all. But when I'm echoing same <code>$content</code> to browser, there are no line breaks at all. And I mean in source code. My purpose is to use <code>$content</code> in another forms <code>&lt;textarea&gt;</code>, but even textarea does not show any line breaks.</p>
  
  <p>How <code>file_put_contents</code> finds the line breaks?</p>