I have a script that checks the source of another page, I'm having my code search for
<span class="item-header">
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 </span>
Here is my code:
if (stristr($source, '<span class="item-header">')){
// What to do here?
}
Any Ideas? :)