A

Admin • 833K Points
Coach

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');
  • Correct Answer - Option(A)
  • Views: 30
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.