获取网页中图片

<?php

$text=file_get_contents('http://www.jb51.net/');   
 
//取得所有img标签,并储存至二维数组 $match 中  
preg_match_all('/<img[^>]*>/i', $text, $match);  
 
//打印出match  
print_r($match);
原文地址:https://www.cnblogs.com/fenle/p/4827542.html