Zend
200-530 · Question #100
Which of the following commands will append data to an existing file?
The correct answer is C. file_put_contents("file", "data", FILE_APPEND). See the full explanation below for the reasoning.
Question
Which of the following commands will append data to an existing file?
Options
- Afile_put_contents("file", "data", "a");
- Bfile_put_contents("file", "a", "data");
- Cfile_put_contents("file", "data", FILE_APPEND);
- Dfile_put_contents("file", "a", NULL, FILE_APPEND);
How the community answered
(51 responses)- A6% (3)
- B14% (7)
- C78% (40)
- D2% (1)
Community Discussion
No community discussion yet for this question.