title: Use PHP to convert text file into array
body: <p>I have a text file <a href="http://thenewkttw.info/140724.txt" rel="noreferrer">here</a> which I need to be able to convert into rows to extract the second, third, fourth, and fifth values from.</p>
  
  <p>The first 7 values of each row are tab delimited, then there is a newline, then the final three values are tab delimited.</p>
  
  <p>I removed the interrupting newlines so that each row is fully tab delimited.</p>
  
  <pre><code>&lt;?php
  
  $file="140724.txt";
  
  $fopen = fopen($file, "r");
  
  $fread = fread($fopen,filesize("$file"));
  
  fclose($fopen);
  
  $remove = "\n";
  
  split = explode($remove, $fread);
  
  foreach ($split as $string)
  {
  echo "$string&lt;br&gt;&lt;br&gt;";
  }
  
  ?&gt;
  </code></pre>
  
  <p>Which produces <a href="http://thenewkttw.info/test.php" rel="noreferrer">this</a>.</p>
  
  <p>I'm not sure where to progress from this point.  I'm teaching myself PHP and am still quite new to it, so I don't even know if where I've started from is a good place.  My instinct is to write the previous output to a new textfile, then create another block of code similar to the first but exploding based on tabs, this time.</p>
  
  <p>Help?</p>