public function Stream::read

Read data from the stream

Parameters

int $length Up to length number of bytes read.:

Return value

string|bool Returns the data read from the stream or FALSE on failure or EOF

Overrides StreamInterface::read

File

drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php, line 268

Class

Stream
PHP stream implementation

Namespace

Guzzle\Stream

Code

public function read($length) {
  return $this->cache[self::IS_READABLE] ? fread($this->stream, $length) : false;
}