Method
StringStream::read
Read data from the stream.
Description#
public StringStream::read(
$length
): stringParameters#
- $length
- Read up to $length bytes from the object and return them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes.
Return values#
Returns the data read from the stream, or an empty string
if no bytes are available. string
Errors / Exceptions#
| Exception | When |
|---|---|
RuntimeException | If an error occurs. |