title: Fetch video id from a youtube playlist using PHP-SimpleXML
body: <p>I'm fetching a few videos from a Youtube playlist using SimpleXML and the Youtube API. I managed to get the title of each video but can´t figure out how to get the video IDs.</p>
  
  <p>How do I get the <code>&lt;yt:videoid&gt;</code> tag?</p>
  
  <p>This is what I got so far:</p>
  
  <pre><code>$xml = simplexml_load_file('http://gdata.youtube.com/feeds/api/playlists/ ID ');
  
  $videos=array();
  
  foreach ($xml-&gt;entry as $video) {
        $vid = array();
        $vid['title'] = $video-&gt;title; // &lt;- This Works
  
        $media = $video-&gt;children('http://search.yahoo.com/mrss/');
        $yt = $media-&gt;group-&gt;children('http://gdata.youtube.com/schemas/2007');
        $vid['id']=$yt-&gt;videoid;  // &lt;- Not Working
  
        $videos[]=$vid;
  }
  </code></pre>