How to get file name in php

$str = "/d/file/shop/7c0ea5b0b96a490a9c78255ddb559943.jpg";

How to get file name 7c0ea5b0b96a490a9c78255ddb559943.jpgfrom full path?

Many thanks.

+3
source share
1 answer

basename($str);

+10
source

Source: https://habr.com/ru/post/1760676/


All Articles