title: read textfile with delimiter in php
body: <p>I have three eintries in a textfile.txt:</p>
  
  <pre><code>20100220
  Hello
  Here is Text \n blah \t even | and &amp; and so on...
  </code></pre>
  
  <p>I want to read each entrie (line) as a new string in php. I thought of using fopen and fgets. But: Since I'm using special characters like \n in the last line, fgets() would not work because it will terminate the string at \n, right? In a result the last line would be just 'Here is Text '.</p>
  
  <p>How can I read/explode the three lines the right way, so the \n in the last line would be interpreted as a normal string?
  Thanks!</p>
  
  <p>p.s.
  By having three lines in my textfile.txt I indirect chose \n as a delimiter, but I could also use another delimiter. what is just the best way to read the content?</p>