title: php DOM inner TAG ( simple_html_dom )
body: <p>I have this html:
      <code>&lt;h2&gt;&lt;a href="http://.... &gt; title&lt;/h2&gt;</code>
  How can I get the string "href"?</p>
  
  <p>I tried with:</p>
  
  <pre><code>include('simple_html_dom.php');
  $html = file_get_html('http://...');
  
  foreach($html-&gt;find('h2')-&gt;find('a') as $k) {
  echo $k-&gt;href . '&lt;br&gt;';
  }
  </code></pre>
  
  <p>error: Call to a member function find() on a non-object</p>