3
1
Back

= $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(@", '', $article['content']); // only keep everything starting at the first // only keep everything starting at the first // only.

New Pull Request