function putThumbnailYoutube($codigoVideo, $numFoto){
$numFoto = (!ereg ("^[-]?[0-9]+([\.][0-9]+)?$", $numFoto)) ? 1 : $numFoto;
$path = "http://img.youtube.com/vi/";
return '<img src="' . $path . $codigoVideo . '/' . $numFoto . '.jpg" width="171" height="148" />';
}
putThumbnailYoutube('u928PW6M5bY', 1)
