I am trying to get the file name from URL and here I use basename to get the file name but it not works.
basename('https://test-assets.amazonaws.com/live%2Ftestsamantha-9-bucket%2Ff132eb33-f403-4881-80e2-de1cc3bdb43a.jpg');
Result is
live%2Ftestsamantha-9-bucket%2Ff132eb33-f403-4881-80e2-de1cc3bdb43a.jpg
How do I get
f132eb33-f403-4881-80e2-de1cc3bdb43a.jpg