Kodlar
<?php
$site= file_get_contents("https://www.youtube.com/channel/kanal-url");
//print_r($site);
preg_match('@<yt-formatted-string id="text" title="" class="style-scope ytd-channel-name">(.*?)</yt-formatted-string>@si', $site, $veri);
preg_match('@<yt-formatted-string id="subscriber-count" class="style-scope ytd-c4-tabbed-header-renderer">(.*?)</yt-formatted-string>@si', $site, $kanal);
echo "Kanal ismi : ".$kanal[1]." | Abone Sayısı: ".$veri[2] ;
?>