-15.3 C
New York
Saturday, February 4, 2023

How to get filename from path in PHP?

Sometimes, we may require to get only filename or image name from full path or url in your PHP project or any framwwork project at that time you can get file name using php pre-define function basename.

If you ever use this function then you can see as bellow example how it’s works. I have one image url like, i want to just get image name then you can get image name like this way :



Related Articles


Please enter your comment!
Please enter your name here

Latest Articles