Zend
200-550 · Question #6
What is the recommended method of copying data between two opened files?
The correct answer is C. stream_copy_to_stream($source_file, $destination_file). See the full explanation below for the reasoning.
Question
What is the recommended method of copying data between two opened files?
Options
- Acopy($source_file, $destination_file);
- Bcopy($destination_file, $source_file);
- Cstream_copy_to_stream($source_file, $destination_file);
- Dstream_copy_to_stream($destination_file, $source_file);
- Estream_bucket_prepend($source_file, $destination_file);
How the community answered
(17 responses)- A6% (1)
- C82% (14)
- D6% (1)
- E6% (1)
Community Discussion
No community discussion yet for this question.