Zend 200-530 Question Answer
Which of the following code snippets writes the content of the “source.txt” to “target.txt”?
file_put_contents("target.txt", fopen("source.txt", "r"));
file_put_contents("target.txt", readfile("source.txt"));
file_put_contents("target.txt", join(file("source.txt"), ""));
file_put_contents("target.txt", file_get_contents("source.txt"));
$handle = fopen("target.txt", "w+"); fwrite($handle,
file_get_contents("source.txt")); fclose($handle);
TESTED 04 Nov 2025
Copyright © 2014-2025 ACE4Sure. All Rights Reserved