title: Simple html dom parser table to array
body: <p>I'm trying to parse the arrivals table from here <a href="http://flightplan.romatsa.ro/init/fpl/flightslr/LRCL">[1]</a> and put in into an array to be able to format it and put it into a table.</p>
  
  <p>I did some research here and there, I've got some code from other questions, but I can't make the array and table look as I'd like.</p>
  
  <p>Anyone can help me out?</p>
  
  <pre><code>&lt;?php
  require('simple_html_dom.php');
  $html = file_get_html('http://flightplan.romatsa.ro/init/fpl/flightslr/LRCL/');
  $table = $html-&gt;find('table', 3);
  foreach($table-&gt;find('tr') as $row) {
  // initialize array to store the cell data from each row
  $rowData = array();
  foreach($row-&gt;find('td') as $cell) {
  // push the cell's text to the array
  $rowData[] = $cell-&gt;innertext;
  }
  echo "&lt;table&gt;";
  echo "&lt;td&gt;";
  echo $rowData[0]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[1]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[2]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[3]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[4]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[5]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[6]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[7]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;td&gt;";
  echo $rowData[8]. " ";
  echo "&lt;/td&gt;";
  echo "&lt;/table&gt;";
  }
  ?&gt;
  </code></pre>