Which of the following is the correct way to open the file "sample.txt" as read only?
Correct Answer: fopen("sample.txt", "r");
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP MCQ Questions
Which is not related with respect to calculating the size of a file?
How do you start a session in PHP?
Correct keyword in SQL?
What is the output? try { $a = 10/0; echo $a; } catch (Exception $e) { echo 'You cannot divide by ZERO!!'; }
Output of the code? $a = 'b'; $b = 22; echo $$a + 40;
What does delete() function do?
Which is not a valid key type for arrays in PHP?
Which function displays a formatted string?
Difference between the include() and require() language constructs?
Which PHP function checks to see if a file exists and is writable?