3
1
Back

= new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // only keep everything starting at the first if(preg_match("@.*(get_img_tags($xpath, '(//img[@id="main-comic"])', $article.

New Pull Request