您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP获取百度最新事件

2024/12/26 2:15:34发布15次查看
php获取百度最新事件,如下代码:
function getbaiduhotkeyword()    {        $templaterss = file_get_contents('http://top.baidu.com/rss_xml.php?p=shijian');        if (preg_match('/(.*)/is', $templaterss, $_description)) {        $templaterss = $_description[0];        $templaterss = str_replace(&, &, $templaterss);        }       $templaterss = .trim($templaterss);       $xml = simplexml_load_string($templaterss);       foreach ($xml->tbody->tr as $temp) {        if (!emptyempty ($temp->td->a)) {          $keyarray [] = trim(($temp->td->a));        }       }       return $keyarray;     }

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product