Zend Certified PHP Engineer 200-550 Question # 15 Topic 2 Discussion

Zend Certified PHP Engineer 200-550 Question # 15 Topic 2 Discussion

200-550 Exam Topic 2 Question 15 Discussion:
Question #: 15
Topic #: 2

Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)


A.

file_put_contents("target.txt", fopen("source.txt", "r"));


B.

file_put_contents("target.txt", readfile("source.txt"));


C.

file_put_contents("target.txt", join(file("source.txt"), "\n"));


D.

file_put_contents("target.txt", file_get_contents("source.txt"));


E.

$handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt")); fclose($handle);


Get Premium 200-550 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.