php - Get characters after last / in url - Stack Overflow

PHOTO EMBED

Wed Jan 12 2022 20:45:33 GMT+0000 (UTC)

Saved by @mvieira

$pos = strrpos($url, '/');
$id = $pos === false ? $url : substr($url, $pos + 1);
content_copyCOPY

https://stackoverflow.com/questions/1361741/get-characters-after-last-in-url