Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Buffer::expandSwoole\Buffer::recycle>
^Swoole\BufferLast updated: Mon, 26 Oct 2026

Swoole\Buffer::read

(PECL swoole >= 1.9.0)

Swoole\Buffer::read — Read data from the memory buffer based on offset and length.

Description

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

Parameters

offset

The offset.

length

The length.

Return Values

The data read from the memory buffer.


<Swoole\Buffer::expandSwoole\Buffer::recycle>
^Swoole\BufferLast updated: Mon, 26 Oct 2026