title: Few examples with HTML SIMPLE DOM
body: <p>i have some problems with html simple dom and dont know how to get some specific data, i read manual and try by my self, but it looks i miss something so hope somebody can help me.</p>
  
  <p>1th problem:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div&gt;
                          &lt;h4&gt;Režie:&lt;/h4&gt;
                          &lt;span data-truncate="60"&gt;
                              &lt;a href="/tvurce/3074-ridley-scott/"&gt;Ridley Scott&lt;/a&gt;
                          &lt;/span&gt;
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;h4&gt;Scénář:&lt;/h4&gt;
                          &lt;span data-truncate="60"&gt;
                              &lt;a href="/tvurce/50383-william-monahan/"&gt;William Monahan&lt;/a&gt;
                          &lt;/span&gt;
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;h4&gt;Kamera:&lt;/h4&gt;
                          &lt;span data-truncate="60"&gt;
                              &lt;a href="/tvurce/66939-john-mathieson/"&gt;John Mathieson&lt;/a&gt;
                          &lt;/span&gt;
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;h4&gt;Hudba:&lt;/h4&gt;
                          &lt;span data-truncate="60"&gt;
                              &lt;a href="/tvurce/62400-harry-gregson-williams/"&gt;Harry Gregson-Williams&lt;/a&gt;
                          &lt;/span&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>My PHP code:</p>
  
  <pre><code>$ret = $html-&gt;find('span[data-truncate*="60"]');                        //rezia
  
  foreach ($ret as $rezia) {
    echo "rezia &lt;br/&gt;";
    }
  </code></pre>
  
  <p>But this code print just name and a href from all of this name, and what i need is just name which is under "REŽIE"(Ridley Scott) and "Scénář" (William Monahan) </p>
  
  <p>2th Problem
  HTML:</p>
  
  <pre><code>&lt;div id="rating"&gt;
          &lt;h2 class="average"&gt;71%&lt;/h2&gt;
          &lt;p class="charts"&gt;
  </code></pre>
  
  <p>PHP code:</p>
  
  <pre><code>$percenta = $html-&gt;find('h2[class*="average"]');                        //pocet ˇ%
  
  foreach ($percenta as $hodnotenie) {
      echo "$hodnotenie";
        }
  </code></pre>
  
  <p>What i get from this is 71% and i want just number, not that HTML around, is it possible?</p>
  
  <p>3th problem (the last one:P):</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;table&gt;
  
                      &lt;tr&gt;
                          &lt;th&gt;
                              V kinech ČR
                               od:
                                                      &lt;/th&gt;
                          &lt;td class="date"&gt;
                              06.05.2005 
                          &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                          &lt;th&gt;
                              V kinech SR
                               od:
                                                      &lt;/th&gt;
                          &lt;td class="date"&gt;
                              05.05.2005 
                          &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr class="separator"&gt;
                          &lt;th&gt;
                              Na DVD
                               od:
                                                      &lt;/th&gt;
                          &lt;td class="date"&gt;
                              01.10.2005 Bonton
                          &lt;/td&gt;
                      &lt;/tr&gt;
  </code></pre>
  
  <p>PHP code:</p>
  
  <pre><code>$ret = $html-&gt;find('td[class="date"]');
  
  $kino = array();
  foreach ($ret as $kino) {
      $datum[] = $datum-&gt;innertext;
      } 
  
     echo "$datum[0]"; 
  </code></pre>
  
  <p>I get not output from this and i have no idea whats wrong on my code.   I just want to get that DATEs (so should be 06.05.2005, 05.05.2005, 01.10.2005)</p>