I\'m new to DOM parsing in PHP: I have a HTML file that I\'m trying to parse. It has a bunch of DIVs like this:
<
I got this to work using simplehtmldom as a start:
$html = file_get_html('example.com'); foreach ($html->find('div[id=interestingbox]') as $result) { echo $result->innertext; }