A

Admin • 833K Points
Coach

Q. Which of the following is the correct way to open a file for writing in PHP?

  • (A) fopen('file.txt', 'w')
  • (B) open('file.txt', 'write')
  • (C) file_open('file.txt', 'w')
  • (D) open_file('file.txt', 'w')
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

fopen() opens a file with specified mode, 'w' for writing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.