Function can extract file name in string having full path in PHP | ||
| ||
| Sometimes, I make string operation function regarding file operation. Actually extracting file name only is frequently using function in terms of my point of view. But one thing if you do the same thing like me, please use below function already provided by PHP. And test below example code on your PHP server.
And below is the result. | ||
| | ||
| |