Sorry if this is reposted, but I can\'t wrap my mind around it and I\'ve tried all the available documentation and examples I could find.
I am trying to get the first
Use this:
$img = $dom->getElementsByTagName('img')->item(0); echo $img->attributes->getNamedItem("src")->value;