Sr. PHP Programmer Question:

How will you open a file in readonly mode?

Tweet Share WhatsApp

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 PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How will you start a session in PHP?How will you delete a cookie in PHP?