title: remove new line characters from txt file using php
body: <p>I have txt file its content like this  </p>
  
  <pre><code>Hello  
  World   
  John  
  play  
  football  
  </code></pre>
  
  <p>I want to delete the new line character when reading this text file, but I don't know how it look like
  the file .txt and its encoding is utf-8</p>