Skip to content

Instantly share code, notes, and snippets.

@happy-coding
Created October 19, 2012 10:36
Show Gist options
  • Save happy-coding/3917459 to your computer and use it in GitHub Desktop.
Save happy-coding/3917459 to your computer and use it in GitHub Desktop.
Extract Video ID from Vimeo URL
<?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