title: simple html dom extracting table by its id
body: <p>I'm using simple html dom in php to extract a table depending on its id. I have done this without any issues when the id doesn't involve any characters like hyphens(-). I suspect it is due to a hyphen because I used the same code with an id with no hyphens and no trouble receiving the data. The data I want to extract is also in a tab that is hidden, does this effect the process?</p>
  
  <p><strong>Here is my code</strong></p>
  
  <pre><code>&lt;?php
  
  include('simple_html_dom.php');
  
  //Insert the url you want to extract data from
  $html = file_get_html('http://espnfc.com/team/_/id/359/arsenal?cc=5739');
  
  $i = 0;
  $dataInTable = true;
  
  while($dataInTable){
  
      if($html-&gt;find('div[id=ui-tabs-1] table tbody', 0)-&gt;children(0)-&gt;children($i)){
  
              for($j=0;$j&lt;3;$j++){
  
                  if($html-&gt;find('div[id=ui-tabs-1] table tbody', 0)-&gt;children(0)-&gt;children($i)-&gt;children($j)){
                      $gk[] = $html-&gt;find('div[id=ui-tabs-1] table tbody', 0)-&gt;children(0)-&gt;children($i)-&gt;children($j)-&gt;plaintext;
                  }else{
                  $dataInTable = false;
                  }
              }
  
              //else if nothing is in the next cell return false.
          }else{
              $dataInTable = false;
          }
  
  
      $i+=2;
  }
  var_dump($gk);
  
  ?&gt;
  </code></pre>
  
  <p><strong>Here is the HTML content</strong>
  <img src="https://i.stack.imgur.com/tPDfR.png" alt="enter image description here"></p>