Copy the code The code is as follows:
/**
* Get Baidu’s hot words
* @user 小杰
* @from http://www.isharey.com/?p=354
* @return array Return Baidu’s hot word data (array return)
*/
function getBaiduHotKeyWord()
{
$templateRss = file_get_contents('http://top.baidu.com/ rss_xml.php?p=top10');
If (preg_match('/
The above introduces the 2009nba finals data php code to obtain Baidu's hot word data, including the 2009nba finals data. I hope it will be helpful to friends who are interested in PHP tutorials.