获取URL
$url = "http://www.nowamagic.net/index.html";
preg_match("/^(http:\/\/)?([^\/]+)/i", $url, $matches);
print_r($matches['0']);
获取图片地址
$str = "<p><img src='/data/upload/meinv/2016/09/meinv_2016090216224620142ae2baeee8f44d36b3...
9-06 3,612 views
获取URL
$url = "http://www.nowamagic.net/index.html";
preg_match("/^(http:\/\/)?([^\/]+)/i", $url, $matches);
print_r($matches['0']);
获取图片地址...