Cita:
Iniciado por ihmps
Toma la url del video y extrae el id utilizando funciones de manipulación de cadenas de texto strings)
http://www.youtube.com/watch?v=[id]&feature=g-all-xit
Luego que tengas el id genera este codigo:
Código HTML:
Ver original<iframe width="560" height="315" src="http://www.youtube.com/embed/[id]" frameborder="0" allowfullscreen></iframe>
Y listo
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)
Perfectoo!! andaba buscando esto.. Gracias.. =)
Algo mas.. algun consejo de que función se puede emplear para obtener el [id]? preg_match?