phasync
MultipartStream / __toString

Method

MultipartStream::__toString

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

Description#

public MultipartStream::__toString(): string

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 values#

string

See also#