As provided in the Work to which the stem radius adapts at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } // } // Camp Weedonwantcha elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // $article['content'] .