3
1
Back

Ours, we want $url_xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (anchor_hole=="right" || anchor_hole=="both") { if (strpos($article["content"], "bonus panel!") !== FALSE) { // only keep everything starting at the time.