PHP获取img标签的src属性值

By | 2022-03-07
preg_match_all('/<img[^>]*?src="([^"]*?)"[^>]*?>/i',$str,$match);

var_dump($match);