Q. Which PHP function gets the current working directory?

  • (A) pwd()
  • (B) getcwd()
  • (C) current_dir()
  • (D) cwd()
πŸ’¬ Discuss
βœ… Correct Answer: (B) getcwd()
Explanation: getcwd() returns the current working directory.
Explanation by: Kanak Sharma
getcwd() returns the current working directory.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
80%
Success Rate