PHP Obtenga la última parte de URL
basename() - Returns trailing name component of path
basename(string $path, string $suffix = ""): string
e.g. basename('www.example.com/test/wanted') => 'wanted'
Literate Lentil