YouTube Video XML using oEmbed

Retrieve XML data for a YouTube video using oEmbed format.

Code

<?php
$video_url = '';
$info = simplexml_load_file("http://www.youtube.com/oembed?url=" . $video_url . "&format=xml");
$title = $info->title;
?>