Zend
200-550 · Question #146
200-550 Question #146: Real Exam Question with Answer & Explanation
Sign in or unlock 200-550 to reveal the answer and full explanation for question #146. The question stem and answer options stay visible for context.
Question
Which of the following code snippets writes the content of the "source.txt" to "target.txt"?
Options
- Afile_put_contents("target.txt", fopen("source.txt", "r"));
- Bfile_put_contents("target.txt", readfile("source.txt"));
- Cfile_put_contents("target.txt", join(file("source.txt"), ""));
- Dfile_put_contents("target.txt", file_get_contents("source.txt"));
- E$handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);
Unlock 200-550 to see the answer
You've previewed enough free 200-550 questions. Unlock 200-550 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.