πŸ“Š PHP
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

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
86%
Success Rate