PHP function stream_copy_to_stream()

Availability in PHP 5.0

Copies data from one stream to another

Parameters

Parameter Data type Default value Note
$source resource not The source stream
$dest resource not The destination stream
$maxlength int null, Maximum bytes to copy
$offset int null The offset where to start to copy data

Return values

int

the total count of bytes copied.

Other resources

Official stream-copy-to-stream documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.