Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get last part of url

basename() - Returns trailing name component of path
basename(string $path, string $suffix = ""): string
e.g. basename('www.example.com/test/wanted') => 'wanted'
 
PREVIOUS NEXT
Tagged: #php #part #url
ADD COMMENT
Topic
Name
5+8 =