title: Remove first and last line from files
body: <p>I am brand new to PHP and I have thousands of records I need to analyze. It appears that the first 2 lines and the last line of each record need to be removed. Is there some type of line count function that I could use to put each line into an array and then delete the first two and do like a max count to get the last line and then delete that? I am at a loss and appreciate any help. Thanks.</p>