<?php $str = '<iframe src="http://player.vimeo.com/video/34134823?title=0&byline=0" width="900" height="506" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; $doc = new DOMDocument(); libxml_use_internal_errors(true); $doc->loadHTML($str); $xpath = new DOMXPath($doc); echo basename(parse_url($xpath->evaluate('string(//iframe/@src)'), PHP_URL_PATH));
You have javascript disabled. You will not be able to edit any code.