PHP, skip first and last line of a text file using fgets
<p>I'm trying to figure out how to skip the first and last line of a text file when I'm reading it while using <code>fgets()</code>. The first line could be solved with an <code>if(!$firstLine)</code>, but I'm not sure how to ignore the last line or if my solution for ignoring the first line is the best choice.</p>
