PHP basename | How to basename() function to use with file upload

Basename introduction

The basename() function used to return file name from a given path.

Syntax of basename

basename(path,suffix)

 

Example of basename using with file upload script

Step 1



Step 2



 

 


Was this article helpful?

Related Articles

Leave A Comment?