$value){$rs[$key]=fetch_match_contents($value[begin],$value[end],$c);if(is_array($th[$key])){ foreach($th[$key] as $old => $new){$rs[$key]=str_replace($old,$new,$rs[$key]);}}}return $rs;}$url=http://www.yourdomain.com; //要采集的地址$ft[a][begin]='$ft[a][end]='>'; //截取的结束点$rs=pick($url,$ft,$th); //开始采集print_r($rs[a]);?>
