Reads data from the stream resource
public read ( integer $length = null, integer $offset = null ) : string | ||
$length | integer | If specified, will read up to $length bytes from the stream. If no value is specified, all remaining bytes in the buffer will be read. |
$offset | integer | Seek to the specified byte offset before reading. |
return | string | Returns string read from stream resource on success, false otherwise. |