Generar Iframe de Youtube con PHP

$videolink="https://www.youtube.com/watch?v=4xEYOMXdGe8";
$ytarray=explode("/", $videolink);
$ytendstring=end($ytarray);
$ytendarray=explode("?v=", $ytendstring);
$ytendstring=end($ytendarray);
$ytendarray=explode("&", $ytendstring);
$ytcode=$ytendarray[0];

echo "<iframe width=\"420\" height=\"315\" src=\"http://www.youtube.com/embed/$ytcode\" frameborder=\"0\" allowfullscreen></iframe>";

esto es una prueba



sdfsdfsdfsdfsd

Comentarios

Entradas populares de este blog

VNC 5.1.0+SERIAL [FULL][MEGA]