stream_copy_to_stream()
function stream_copy_to_stream(resource $from, resource $to, int $length = null, int $offset = -1): mixed
Copies data from one stream to another.
Parameters:
$from(resource)$to(resource)$length(int), defaultnull, optional$offset(int), default-1, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_copy_to_stream.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_copy_to_stream is implemented in the compiler, see the internals page.