取内容里面的第一张图片


    public function img($src){
        preg_match_all('/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i',$src,$temp);
        return $temp[1][0];
    }

posted on 2016-05-19 15:03  久违的绽放  阅读(124)  评论(0编辑  收藏  举报