Created
October 19, 2012 10:36
-
-
Save happy-coding/3917459 to your computer and use it in GitHub Desktop.
Extract Video ID from Vimeo URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$string = "http://vimeo.com/24076588"; | |
preg_match_all('/[\d]+/i',$string, $result); | |
print_r($result); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment