Q. Which function is used to check if a file exists in PHP?

  • (A) file_exists()
  • (B) is_file()
  • (C) exists()
  • (D) check_file()
πŸ’¬ Discuss
βœ… Correct Answer: (A) file_exists()
Explanation: file_exists() checks whether a file or directory exists.
Explanation by: Mr. Dubey
file_exists() checks whether a file or directory exists.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
103
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate