How can I extract youtube embed code from a paragraph of text ?
I tried preg_match_all() function, but its not returning the complete emebed code, any suggestions ?
I am trying to get the embed code completly like
<iframe width="560" height="315" src="//www.youtube.com/embed/o66nNnGZ5Rg" frameborder="0" allowfullscreen></iframe>