Q. Which of these functions is used to read a file into an array?

  • (A) file()
  • (B) readfile()
  • (C) fgets()
  • (D) fgetcsv()
πŸ’¬ Discuss
βœ… Correct Answer: (A) file()
Explanation: file() reads the entire file into an array, with each line as an element.
Explanation by: Rati Dubey
file() reads the entire file into an array, with each line as an element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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