if(preg_match("@.*(get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Poorly Drawn Lines // Berkeley Mews elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { //noop elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks) Invisible Bread, Softer World (alt tags), Dinosaur Comics alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link.