[关闭]\r\n"; preg_match_all("/(src|SRC)=[\"|'| ]{0,}(http:\/\/(.*)\.(gif|jpg|jpeg|png))/isU", $myhtml, $img_array); $img_array = array_unique($img_array[2]); echo "
"; echo "捕获的图片:\r\n"; print_r($img_array); echo "
\r\n";