Sr. PHP Programmer Question:
Download Questions PDF

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.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you start a session in PHP?How will you delete a cookie in PHP?