im trying to get youtube video title from
http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=dpe11FCFxBE&format=xml
in xml title is in
<oembed>
<title>
TITLE IS HERE
</title>
</oembed>
so i try this code to get title but it dont work
$json_output = file_get_contents("http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=".$video_id."&format=xml");
$fln = $json['oembed']['title'];