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.