日期:2014-05-17 浏览次数:20405 次
$s=file_get_contents('http://www.tudou.com/listplay/Icl7UAlbQZs/6YFO9qJvtts.htm'); preg_match_all('/iid:(\d+)\s+,kw:"(.*?)"\s+.*?icode:"(.*?)"/s',$s,$matches); foreach($matches[1] as $k=>$v){ $name=iconv('GB2312','utf-8',$matches[2][$k]); echo "<a href='http://www.tudou.com/l/{$matches[3][$k]}/&iid={$matches[1][$k]}/v.swf'>$name</a><br />"; }