title: Making new line in php write to file
body: <p>I tried this but wont work</p>
  
  <pre><code>&lt;?php
  $myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
  $txt = "Mickey Mouse\n";
  fwrite($myfile, $txt);
  $txt = "Minnie Mouse\n";
  fwrite($myfile, $txt);
  fclose($myfile);
  ?&gt; 
  </code></pre>
  
  <p>This is how it displays in my newfile.txt:</p>
  
  <pre><code>Mickey MouseMinnie Mouse`
  </code></pre>
  
  <p>but I want it like this:</p>
  
  <pre><code>Mickey Mouse
  Minnie Mouse
  </code></pre>