Youtube video show only add url link in php code Embed code

PHP, Tutorial 0 Comments

Youtube video show only add url link in php code Embed code. How do I embed a YouTube video How do you put a YouTube video in website php Can I use YouTube videos in my website How do I embed a video into my website?
How do I embed live streaming video on my website


<?php
$url = 'https://www.youtube url.com/watch?v=u9-kU7gfuFA'
preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches);
$id = $matches[1];
$widths = '400px';
$heights = '350px';
?>
<iframe id="ytplayer" type="text/html" width="<?php echo $widths ?>" height="<?php echo $heights ?>"
src="https://www.youtube.com/embed/<?php echo $id ?>?rel=0&showinfo=0&color=white&iv_load_policy=3"
frameborder="0" allowfullscreen></iframe>

How do I embed a YouTube video?
How do you put a YouTube video on a Powerpoint?
Can I use YouTube videos in my website?
How do I embed a video into my website?
How do I embed live streaming video on my website?