标签:
function getImg($sContent) { $sContent = str_replace(‘\"‘, ‘"‘, $sContent); $pattern="/<[img|IMG].*?src=[\‘|\"](.*?(?:[\.gif|\.jpg]))[\‘|\"].*?[\/]?>/"; preg_match_all($pattern, $g_content, $match); return $aImg = $match[1]; }
标签:
原文地址:http://www.cnblogs.com/appsolution/p/4215328.html