Correct:
stream_copy_to_stream ( resource $source , resource $destination)
Explanation:
Answer options C is correct.
The stream_copy_to_stream() function is used to copy data from one stream to another. It is mainly useful in copying data between two open files. The syntax of the stream_copy_to_stream() function is as follows:
int stream_copy_to_stream ( resource $source , resource $dest [, int $maxlength = -1 [, int $offset = 0 ]] )
Here, if maxlength is not specified, the stream_copy_to_stream() function will copy all data to the destination.
Answer options B, A, and D are incorrect. Option B does not contain correct format of the stream_copy_to_stream() function. The buffer_start() function is used to turn buffer on. The copy() function is used to make a copy of source file but it is not the ideal method for two opened files.
Reference: https://www.php.net/manual/en/function.stream-copy-to-stream.php