Radius adapts at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) .