xml_array['root']['rss']['channel']['item'][0]['title']); // the OO way print_r($db->root->rss->channel->item[0]->title); ?>