Complete PHP Filesystem Reference
The basename() function returns the filename from a path.
| Parameter | Description |
|---|---|
| path | Required. Specifies the path to check |
| suffix | Optional. Specifies a file extension. If the filename has this file extension, the file extension will not show |
The output of the code above will be:
Complete PHP Filesystem Reference
Your message has been sent to W3Schools.