Sr. PHP Programmer Question:
Download Job Interview Questions and Answers PDF
How will you open a file in readonly mode?
Answer:
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.
Download Senior PHP Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
How will you start a session in PHP? | How will you delete a cookie in PHP? |