<?php $rss = simplexml_load_file('http://api.flickr.com/services/feeds/photos_public.gne?id=22896965@N04&lang=en-us&format=atom'); foreach($rss->entry as $entry) { $tag = ""; $str = trim(substr(strstr(strip_tags($entry->content),":"),1)); foreach($entry->link[0]->attributes() as $key => $val) { if($key == "href"){ $url = $val; } } foreach ($entry->category as $category){ foreach($category->attribu