← All docs

stream_copy_to_stream()

Copies data from one stream to another.

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), default null, optional
  • $offset (int), default -1, optional

Returns: mixed

Availability

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.