Function copy_to_string
Copy the contents of a stream into a string until the given number of bytes have been read.
|
$stream |
Stream to read |
integer |
$maxLen = -1 |
<p>Maximum number of bytes to read. Pass -1 to read the entire stream.</p> |
string
|
string |
RuntimeException
|
on error. |