<?php

$html = <<< EOF
<a href="http://www.microsoft.com/">   <img src="http://c.s-microsoft.com/en-in/CMSImages/MMD_TCFamily_1006_540x304.jpg?version=ac2c5995-fde2-b40b-3f2a-b6a0baa88250" class="mscom-image feature-image" alt="Learn about Lumia 950 and Lumia 950 XL." width="540" height="304"> SOME TEXT   </a>
EOF;

$dom = new DOMDocument();
$dom->preserveWhiteSpace = false;
$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
foreach($xpath->query("//a[contains(@href,'microsoft.com')]") as $element ){
        $img = $xpath->query('./img',$element)->item(0);
        echo $img->getAttribute('src'); // img source
        echo $img->getAttribute('alt'); // img alt text
        echo $element->textContent; //text inside the a tag
}