Q. Which PHP function returns the directory name of a given path? (A) dirname() (B) basename() (C) pathinfo() (D) dir() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) dirname() Explanation: dirname() returns the directory part of a path.