PHP: get the image source complete URL from HTML

function GetImageSource($strHtml){
$strRegExp = ‘/
$arrMatches = array();

$bolMatched = preg_match_all($strRegExp,$strHtml,$arrMatches);

if( $bolMatched!==false && isset($arrMatches[1]) )
{
return $arrMatches[1];
}
else
{
return false;
}
}
?>

 
 

 

php, get image url, html, function, src,