Skip to main content
Active reading [<http://en.wikipedia.org/wiki/YouTube>]. In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

hereHere is a simple function iI created for getting the thumbnails, it. It is easy to understand and use. $link

$link is the youtubeYouTube link copied exactly as it is onin the browser  , for example, https://www.youtube.com/watch?v=BQ0mxQXmLsk

    function get_youtube_thumb($link){
    $new=str_replace$new = str_replace('https://www.youtube.com/watch?v=', '', $link);
    $thumbnail='https$thumbnail = 'https://img.youtube.com/vi/' . $new . '/0.jpg';
    return $thumbnail;
}

here is a simple function i created for getting the thumbnails, it is easy to understand and use. $link is the youtube link copied exactly as it is on the browser  , for example https://www.youtube.com/watch?v=BQ0mxQXmLsk

    function get_youtube_thumb($link){
    $new=str_replace('https://www.youtube.com/watch?v=','', $link);
    $thumbnail='https://img.youtube.com/vi/'.$new.'/0.jpg';
    return $thumbnail;
}

Here is a simple function I created for getting the thumbnails. It is easy to understand and use.

$link is the YouTube link copied exactly as it is in the browser, for example, https://www.youtube.com/watch?v=BQ0mxQXmLsk

function get_youtube_thumb($link){
    $new = str_replace('https://www.youtube.com/watch?v=', '', $link);
    $thumbnail = 'https://img.youtube.com/vi/' . $new . '/0.jpg';
    return $thumbnail;
}
Source Link

here is a simple function i created for getting the thumbnails, it is easy to understand and use. $link is the youtube link copied exactly as it is on the browser , for example https://www.youtube.com/watch?v=BQ0mxQXmLsk

    function get_youtube_thumb($link){
    $new=str_replace('https://www.youtube.com/watch?v=','', $link);
    $thumbnail='https://img.youtube.com/vi/'.$new.'/0.jpg';
    return $thumbnail;
}