<?php $url = 'https://player.vimeo.com/video/322332324?byline=0'; // Get the path from the URL $path = parse_url($url, PHP_URL_PATH); // Explode the path on / to get the different fragments $fragments = explode('/', $path); // Now simply take the last part of the fragemnts $numbers = end($fragments); echo $numbers;
You have javascript disabled. You will not be able to edit any code.