The dirname() file system function in PHP will return the parent folder’s path. This function will accept one parameter which is the path to a folder or file.
Here is the Example
OUTPUT
project/filename/mp3
The dirname() file system function in PHP will return the parent folder’s path. This function will accept one parameter which is the path to a folder or file.
Here is the Example
OUTPUT
project/filename/mp3