/ Published in: PHP

need to get the url from a youtube/vimeo embedded code without the querystring's
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$str = '<iframe width="560" height="315" src="http://www.youtube.com/embed/GHcUkc4tshA?rel=0" frameborder="0" allowfullscreen></iframe>'; $findme = 'http://'; $nextFind = '?'; $next2Find = '"'; if($pos1 < $pos2 && $pos1 != -1) { }else { }
Comments
