I'm trying to extract content within a particular div, that div is called : <div id="info">needthis content</div>

and perhaps another div called: <div class="fap-results" id="person-results">need this content</div>


I'm pulling all the content right now from the page, but that's not what i need... here's what i have:

PHP Code:
$html file_get_contents("http://anyany.yexxxo.com/thispage");

$dom = new DOMDocument;
$dom->loadHTML($html);

$items $dom->getElementsByTagName('div');

for (
$i 0$i $items->length$i++)
        echo 
$items->item($i)->nodeValue "<br/>"


Thanks in advance.