WordPress\AiClientDependencies\Psr\Http\Message

StreamInterface::__toStringpublicWP 1.0

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.

Method of the class: StreamInterface{}

No Hooks.

Returns

String.

Usage

$StreamInterface = new StreamInterface();
$StreamInterface->__toString(): string;

Notes

StreamInterface::__toString() code WP 7.0

public function __toString(): string;