- <?php
- function getGoogleHotSearches(){
- $gHotSearchesURL = 'http://www.google.com/trends/hottrends/atom/hourly';
- $gHotSearchData = simplexml_load_string(DownloadUrl($gHotSearchesURL));
- if(!empty($gHotSearchData)){
- $hotSearchesHTML = "<ul>";
- print_r($gHotSearchData->entry->content[0]);
- }
- }
- ?>