Answer & Solution
Answer: Option D
Solution:
The
dirname()
function returns the parent directory of a file path, such as extracting "/path/to" from "/path/to/file.txt".