foreach ( $feed->items as $item ) { $Temp[$TempCount] = new MyFeed; $Temp[$TempCount]->Description = $item['description']; // $Temp[$TempCount]->Title = str_replace(array('æ','ø','å'),array('æ','ø','å'),$item['title']); $Temp[$TempCount]->Title = $item['title']; $Temp[$TempCount]->ChannelTitle = $feed->channel['title']; $from = array('New England Journal of Medicine -- Recent Issues','Online First','Statens Serum Institut / nyheder'); $to = array('NEJM','','SSI'); $feed->channel['title'] = str_replace($from,$to,$feed->channel['title']); $Temp[$TempCount]->Link = $item['link']; $Temp[$TempCount]->Date = ManipulateDate(FindDate($item)); $Temp[$TempCount]->ID = md5($item['link']); $Temp[$TempCount]->Source = $rss_sources[$i]; $TempCount++; }