php8.5
Home/ Manual/ swoole / buffer/ Swoole\Buffer::read

Swoole\Buffer::read

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Read data from the memory buffer based on offset and length.

Description

Swoole\Buffer::read(int $offset, int $length): string

Parameters

offset

The offset.

length

The length.

Return Values

The data read from the memory buffer.

Source: reference/swoole/swoole/buffer/read.xml · from the official PHP manual (php/doc-en)