You are here

public function StreamInterface::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/StreamInterface.php \Psr\Http\Message\StreamInterface::__toString()

Reads all data from the stream into a string, from the beginning to end.

This method MUST attempt to seek to the beginning of the stream before reading data and read the stream until the end is reached.

Warning: This could attempt to load a large amount of data into memory.

This method MUST NOT raise an exception in order to conform with PHP's string casting operations.

Return value

string

See also

http://php.net/manual/en/language.oop5.magic.php#object.tostring

8 methods override StreamInterface::__toString()
AppendStream::__toString in vendor/guzzlehttp/psr7/src/AppendStream.php
Reads all data from the stream into a string, from the beginning to end.
BufferStream::__toString in vendor/guzzlehttp/psr7/src/BufferStream.php
Reads all data from the stream into a string, from the beginning to end.
FnStream::__toString in vendor/guzzlehttp/psr7/src/FnStream.php
Reads all data from the stream into a string, from the beginning to end.
PumpStream::__toString in vendor/guzzlehttp/psr7/src/PumpStream.php
Reads all data from the stream into a string, from the beginning to end.
RelativeStream::__toString in vendor/zendframework/zend-diactoros/src/RelativeStream.php
Reads all data from the stream into a string, from the beginning to end.

... See full list

File

vendor/psr/http-message/src/StreamInterface.php, line 28

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function __toString();