SyntaxFix
Write A Post
Hire A Developer
Questions
You can use substr and strrchr:
substr
strrchr
$url = 'http://www.vimeo.com/1234567'; $str = substr(strrchr($url, '/'), 1); echo $str; // Output: 1234567