How to Show Thumbnail from YouTube URL?

[php]

$url = “https://www.youtube.com/watch?v=N4mEzFDjqtA”;

$queryString = parse_url($url, PHP_URL_QUERY);

parse_str($queryString, $params);

$v = $params[‘v’];

//DISPLAY THE IMAGE
if(strlen($v)>0){
echo ““;
}

[/php]