title: PHP - Simple HTML DOM Parser - Table Issue
body: <p>I'm receiving some data from cURL and want to grab informations so i can save in another database. </p>
  
  <p>The result of the cURL is a hole html page, so i'm using Simple HTML DOM Parser to get what i want. The problem is, i want the values of a table, but i'm getting just the tittles.</p>
  
  <p>Here's the page: </p>
  
  <pre><code>&lt;div id="conteudo"&gt;
  &lt;body&gt;
  &lt;div id="tab"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#tabs-a"&gt;Test1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#tabs-b"&gt;Test2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#tabs-c"&gt;Test3&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  
    &lt;div id="tabs-1"&gt;
    &lt;div&gt;
    &lt;table id="d1" name="d1"&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
       &lt;td width="15%"&gt;Name:&lt;/td&gt;&lt;td&gt;
          &lt;form method="POST" id="form" action="index.php#tabs-1" &gt;
                &lt;input name="txtName" type="text"&gt;
                &lt;input name="btn" value="ok" id="btn" type="submit"&gt;
          &lt;/form&gt;
       &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Name:&lt;/td&gt;
        &lt;td&gt;&lt;b&gt;John&lt;/b&gt;&lt;/td&gt;
        &lt;td&gt;Age:&lt;/td&gt;
        &lt;td&gt;20&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Father:&lt;/td&gt;
        &lt;td&gt;Locke&lt;/td&gt;
        &lt;td&gt;Mother:&lt;/td&gt;
        &lt;td&gt;Felicity&lt;/span&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Adress:&lt;/td&gt;
        &lt;td&gt;Ok&lt;/td&gt;
        &lt;td&gt;City:&lt;/td&gt;
        &lt;td&gt;New York&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt; 
  
  ...
  </code></pre>
  
  <p>What i'm trying: </p>
  
  <pre><code>$table = $html-&gt;find('table', 4);
  $rowData = array();
  
  foreach($table-&gt;find('tr') as $row) {
      // initialize array to store the cell data from each row
      $flight = array();
      foreach($row-&gt;find('td') as $cell) {
          // push the cell's text to the array
          $flight[] = $cell-&gt;plaintext;
      }
      $rowData[] = $flight;
  }
  
  echo '&lt;table&gt;';
  foreach ($rowData as $row =&gt; $tr) {
      echo '&lt;tr&gt;'; 
      foreach ($tr as $td)
          echo '&lt;td&gt;' . $td .'&lt;/td&gt;';
      echo '&lt;/tr&gt;';
  }
  echo '&lt;/table&gt;';
  </code></pre>
  
  <p>What i'm getting: </p>
  
  <pre><code>Name:
  Father:
  Mother: 
  </code></pre>
  
  <p>The problem is, i'm not getting the whole data.. Just the tittles, can you see?</p>