$url = '你的远程地址';$html = file_get_contents($url);//根据需求填写正则表达式preg_match_all("/([^<]+)<\/div>/", $string, $matches);//打印出你要的内容print_r($matches);
要是不要求效率的话,使用xpath之类的网页解析库会简单省事也安全的多~
用正则匹配例如:$string = '