Q. Which function is used to read a file into a string in PHP?

  • (A) file_get_contents()
  • (B) readfile()
  • (C) fopen()
  • (D) fread()
πŸ’¬ Discuss
βœ… Correct Answer: (A) file_get_contents()
Explanation: file_get_contents() reads the entire file into a string.
Explanation by: Rati Dubey
file_get_contents() reads the entire file into a string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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