<?php
$id = NULL;
$channel_id = 'KANAL_ID_BURAYA';
$xml = simplexml_load_file(sprintf('https://www.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; // VIDEO ID SI
Bunun örnek olarak düzenlenmiş halini de editleyebilir misiniz rica etsem? Nereleri değiştirmeliyim?