title: Extract DOM-elements from string, in PHP
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/3946506/crawling-a-html-page-using-php">crawling a html page using php?</a><br>
    <a href="https://stackoverflow.com/questions/3577641/best-methods-to-parse-html">Best methods to parse HTML</a>  </p>
  </blockquote>
  
  
  
  <p>I have one string-variable in my php-script, that contains html-page. How i can extract DOM-elements from this string? </p>
  
  <p>For example, in this string <code>'&lt;div class="someclass"&gt;text&lt;/div&gt;'</code>, i wish get variable 'text'. How i can do this?</p>