title: simple html dom parser to return all td`s values?
body: <p>im using simple html dom parser to get scrap some data from html string .<br>
  i need to return the TD's values from a table with specific css class each TD as array element<br>
  i tried this cod but it gives fetal error</p>
  
  <pre><code>&lt;?php
  include('classes/simple_html_dom.php');
  $html = str_get_html('&lt;table class="pages_navigator"&gt;
  &lt;tr&gt;
  &lt;th style="width:50px;"&gt;ID &lt;/th&gt;
  &lt;th&gt;Business &lt;/th&gt;
  &lt;th style="width:70px;"&gt;Category&lt;/th&gt;
  &lt;th style="width:50px;"&gt;Phone &lt;/th&gt;
  &lt;th style="width:70px;"&gt;State&lt;/th&gt;
  &lt;th style="width:70px;"&gt;City&lt;/th&gt;
  &lt;tr class="users_tr"&gt;
  &lt;td&gt;3571&lt;/td&gt;
  &lt;td&gt;Premium GD&lt;/td&gt;
  &lt;td&gt;2063199876&lt;/td&gt;
  &lt;td&gt;Washington&lt;/td&gt;
  &lt;td&gt;Seattle&lt;/td&gt;
  &lt;td&gt;3703&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;');
  $tds = $html-&gt;find('table.pages_navigator')-&gt;find('td') ;
  print_r($tds);
  ?&gt;
  </code></pre>
  
  <p>then i tried </p>
  
  <pre><code>&lt;?php
      include('classes/simple_html_dom.php');
      $html = str_get_html('&lt;table class="pages_navigator"&gt;
      &lt;tr&gt;
      &lt;th style="width:50px;"&gt;ID &lt;/th&gt;
      &lt;th&gt;Business &lt;/th&gt;
      &lt;th style="width:70px;"&gt;Category&lt;/th&gt;
      &lt;th style="width:50px;"&gt;Phone &lt;/th&gt;
      &lt;th style="width:70px;"&gt;State&lt;/th&gt;
      &lt;th style="width:70px;"&gt;City&lt;/th&gt;
      &lt;tr class="users_tr"&gt;
      &lt;td&gt;3571&lt;/td&gt;
      &lt;td&gt;Premium GD&lt;/td&gt;
      &lt;td&gt;2063199876&lt;/td&gt;
      &lt;td&gt;Washington&lt;/td&gt;
      &lt;td&gt;Seattle&lt;/td&gt;
      &lt;td&gt;3703&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;');
      $result = array();
      foreach($html-&gt;find('tr.users_tr') as $e){
      $result[] = $e-&gt;plaintext . '&lt;br&gt;';
      }
      print_r($result);
  ?&gt;
  </code></pre>
  
  <p>the last one worked good but it brings all TD;s as a single string no each td as an array element ?
  var_dump result</p>
  
  <pre><code>Array ( 
  [0] =&gt; 3571 Premium GD 2063199876 Washington Seattle 3703 
  )
  </code></pre>