Q. Which of the following is a valid way to open a file for reading in PHP?
β
Correct Answer: (A)
fopen('file.txt', 'r');
Explanation: fopen() is used to open files. 'r' mode is for reading.