I\'m playing now with the Youtube API and I began a small project (for fun).
The problem Is that I cant find the way to get Title of a video from the Id. (example: y
My solution is:
$xmlInfoVideo = simplexml_load_file("http://gdata.youtube.com/feeds/api/videos/".$videoId."?v=2&fields=title"); foreach($xmlInfoVideo->children() as $title) { $videoTitle = strtoupper((string) $title); }
This get the title of the video.