Q. Which PHP function returns the directory name of a given path?
β
Correct Answer: (A)
dirname()
Explanation: dirname() returns the directory part of a path.