当前位置:编程学习 > php >>

php读取文章中所有图片

 代码如下 复制代码
preg_match_all('/<img(.*?)src="(.*?)(?=")/', file_get_contents('http://www.zzzyk.com'), $img_tags);
补充:Php教程,Php应用 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,