取内容里面的第一张图片
public function img($src){
preg_match_all('/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i',$src,$temp);
return $temp[1][0];
}
public function img($src){
preg_match_all('/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i',$src,$temp);
return $temp[1][0];
}