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;
}
}
?>
By pachanka
3 years ago.
Notes:
