read()
read(integer $length) : string|boolean
Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.
If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.
Parameters
integer | $length |
Throws
- \Pop\Mail\Transport\Smtp\Stream\Byte\Exception