wujunqi
1/21/2018 - 9:07 AM

[preg] 获取长影评url的oid #电影业务

[preg] 获取长影评url的oid #电影业务

http://movie.weibo.com/movie/langreview/pcindex/object_id/1022:2308244010495215593472?mod=zwenzhang";
$patten = "|1022:[0-9]*|";
$str = preg_match_all($patten, $str, $match);
$res = "";
foreach($match[0] as $data){
    $res .= $data ."\n";
}
echo $res;