title: Get content of special HTML tag by class name
body: <p>If I have an HTML page containing <code>&lt;div class="post-inner"&gt;</code>, how can I get the content of this <code>div</code> with class name <code>post-inner</code> without any JavaScript? I just want the content of the <code>div</code> tag using PHP as fast as possible. I have tried this code but I don't know what to do after that:</p>
  
  <pre><code>$html = file_get_contents('http://www.q8ping.com/49352.html');
  $doc = new DOMDocument();
  libxml_use_internal_errors(true);
  $doc-&gt;loadHTML($html);
  $sxml = simplexml_import_dom($doc);
  print_r($sxml);
  </code></pre>