Get the Youtube Video Thumbnail from Youtube video Url using PHP

$url = http://www.youtube.com/watch?v=oHg5SJYRHA0&feature=relate;$fetch=explode(v=, $url);$videoid=$fetch[1];
echo '<img src='http://img.youtube.com/vi/.$videoid./1.jpg' width='100' height='90' />';

https://i1.ytimg.com/vi/<insert-youtube-video-id-here>/default.jpg -  default
https://i1.ytimg.com/vi/<insert-youtube-video-id-here>/mqdefault.jpg - medium
https://i1.ytimg.com/vi/<insert-youtube-video-id-here>/hqdefault.jpg - high
https://i1.ytimg.com/vi/<insert-youtube-video-id-here>/sddefault.jpg - standard