Reputation: 233
$str = "/d/file/shop/7c0ea5b0b96a490a9c78255ddb559943.jpg";
How do I get the filename 7c0ea5b0b96a490a9c78255ddb559943.jpg from the full path?
7c0ea5b0b96a490a9c78255ddb559943.jpg
Thanks a lot.
Upvotes: 3
Views: 302
Reputation: 98469
basename($str);
Upvotes: 10