title: add a new line to text file in php using file_put_contents
body: <p>I need to add a new line to a text file, but the following code skips one line. please help me</p>
  
  <pre><code>file_put_contents("singles.txt","\n".$userData, FILE_APPEND);
  </code></pre>