use jquery functions on PHP string
<p>I'm searching for a php library which i can use like jquery on a php string.
I have a string in php</p>

<pre><code>$html = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div&gt;&lt;span&gt;test&lt;/span&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;";
</code></pre>

<p>Now I want to use functions like $("body").find("div span").text();</p>

<p>Is there something like this available?
I know you can solve this with regular expressions but the html -string is more complex than this example so I don't think this is a proper solution.</p>

<p>Already thanks!</p>
