Detecting </span> in PHP?
<p>I have a script that checks the source of another page, I'm having my code search for</p>

<pre><code> &lt;span class="item-header"&gt;
</code></pre>

<p>in the source. When it finds it, I wan't to print everything that is in the span, but I am not sure how I would do that in PHP? How do I check when to stop printing everything after the span until it finds <code>&lt;/span&gt;</code> Here is my code:</p>

<pre><code> if (stristr($source, '&lt;span class="item-header"&gt;')){
   // What to do here?
 }
</code></pre>

<p>Any Ideas? :)</p>
