New fetcher, use the first if (preg_match("@.*(get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net.