WordPress\AiClientDependencies\Psr\Http\Message

StreamInterface::readpublicWP 1.0

Read data from the stream.

Method of the class: StreamInterface{}

No Hooks.

Returns

String. Returns the data read from the stream, or an empty string

if no bytes are available.

Usage

$StreamInterface = new StreamInterface();
$StreamInterface->read( $length ): string;
$length(int) (required)
Read up to $length bytes from the object and return
php them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes. .

StreamInterface::read() code WP 7.0

public function read(int $length): string;