Q. Which PHP function returns the directory name of a given path?

  • (A) dirname()
  • (B) basename()
  • (C) pathinfo()
  • (D) dir()
πŸ’¬ Discuss
βœ… Correct Answer: (A) dirname()
Explanation: dirname() returns the directory part of a path.
Explanation by: Rati Dubey
dirname() returns the directory part of a path.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
85%
Success Rate