'; $data = json_decode(file_get_contents('http://gdata.youtube.com/feeds/api/users/inthepinkbigband/uploads/?alt=json')); foreach($data->feed->entry as $video) { $t = '$t'; $media = 'media$group'; $thumbnails = 'media$thumbnail'; //print_r($video); $title = $video->title->$t; $content = $video->content->$t; $url = $video->$media->{'media$content'}[0]->url . '&color=white'; echo "

$title

"; //$thumbnails = $video->$media->$thumbnails; //print_r($video->$media->$thumbnails); /* * Thumbnails */ echo sprintf($youtube_template, $url, $url, $video->$media->{'media$content'}[0]->type); foreach($video->$media->$thumbnails as $thumbnail) { if($thumbnail->height > 300) {} //echo '' . $thumbnail->time .''; } /* * [url] => http://i.ytimg.com/vi/YLz3Bq9cgj8/0.jpg [height] => 360 [width] => 480 [time] => 00:01:44 */ } ?>