3
1
Back

Reporters & Editors This software is modified by someone else and passed on, we want $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title.

New Pull Request