title: By pass the first two lines of csv file
body: <p>I am trying to read data from a csv file using <code>fgets</code>. However, I would want to by pass the first two top rows. </p>
  
  <p>By default, <code>fgets</code> by passes the first row alone. How can I tweak this to make it by pass the first two top rows? </p>
  
  <pre><code>$myfile = "/home/dibon/AML_Data/test.csv";
  $myfile = fopen("$myfile", "r") or die("Unable to open file!");  
  
  fgets($myfile); //First fgets to read over header line.
  
  while($line=fgets($myfile)){
  //Explode your line by space delimeter
  $words=explode("|",$line);
  
  DB::table('transaction_incremental')-&gt;insert(
  ['ReceiptNumber' =&gt; "$words[0]", 'InitiatingMSISDN' =&gt; "$words[2]"]
  );
  
  }
  </code></pre>