title: php - fgets - read first line twice?
body: <p>i have a while loop that FGETS through an external file and then executes function a() over each line.</p>
  
  <p>what i want to do is to first look at the first line. if the line meets certain criteria, I want to execute function b() with it and then have the while loop work the a() function over lines 2+.</p>
  
  <p>if the first line does NOT match the criteria, then i want the while loop to work the a() function over lines 1+. </p>
  
  <p>is this possible without having to close and reopen the file again?</p>