title: PHP: delete the first line of a text and return the rest
body: <p>What's the best way to remove the very first line of a text string and then echo the rest in PHP?</p>
  
  <p>For example.</p>
  
  <p>This is the text string:</p>
  
  <pre><code>$t=&lt;&lt;&lt;EOF
  First line to be removed
  All the rest
  Must remain
  EOF;
  </code></pre>
  
  <p>This is the final output:</p>
  
  <pre><code>All the rest
  Must remain
  </code></pre>
  
  <p>If I was working with a file in Bash I could do easily the next:</p>
  
  <p><code>sed -i~ 1d target-file</code></p>
  
  <p>Or:</p>
  
  <p><code>tail -n +2 source-file &gt; target-file</code></p>
  
  <p>Any ideas?</p>