Today now in this post i will show you How to get filename from path in PHP? Sometimes, we need to get only filename or the image name from our full path or the url in our PHP project or any others framwork .On that time we can get the file name by using php pre-define function basename.
So If we ever use this function then we can see as like as bellow example how it’s works. Now I have one image url like, now i want to just get the image name then we can get image name like this way :
Read Also : How to Create Custom Blade Directive in Laravel?
Thanks for read. I hope it help you. For more you can follow us on facebook.