I was wondering how I can get YouTube video ID what my API prints out. I want to get page content, not source code. If someone want to see how it looks, here is API URL: http://fnapi.cpt-design.tk/api.php
I have this so far
<?php $id = NULL;
$channel_id = 'UCd_09Tp1Bk05gDqc1RWyhuw';
$xml = simplexml_load_file(sprintf('youtube.com/feeds/videos.xml?channel_id=%s';, $channel_id));
if (!empty($xml->entry[0]->children('yt', true)->videoId[0])){
$id = $xml->entry[0]->children('yt', true)->videoId[0];
}
echo $id;
?>