πŸ“Š PHP
Q. Which of the following is a valid way to open a file for reading in PHP?
  • (A) fopen('file.txt', 'r');
  • (B) open('file.txt', 'read');
  • (C) file_open('file.txt', 'r');
  • (D) read_file('file.txt');
πŸ’¬ Discuss
βœ… Correct Answer: (A) fopen('file.txt', 'r');

Explanation: fopen() is used to open files. 'r' mode is for reading.

Explanation by: Rati Dubey
fopen() is used to open files. 'r' mode is for reading.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
28
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
85%
Success Rate