Answers

Question and Answer:

  Home  Senior PHP Programmer

⟩ How will you open a file in readonly mode?

The PHP fopen() function is used to open a file. It requires two arguments stating first the file name and then mode in which to operate. "r" mode opens the file for reading only and places the file pointer at the beginning of the file.

 178 views

More Questions for you: