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\BufferSwoole\Buffer::clear>
^Swoole\BufferLast updated: Mon, 26 Oct 2026

Swoole\Buffer::append

(PECL swoole >= 1.9.0)

Swoole\Buffer::append — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated.

Description

public function Swoole\Buffer::append(string $data): int

Parameters

data

The string or binary data to append at the end of the memory buffer.

Return Values

The new size of the memory buffer.


<Swoole\BufferSwoole\Buffer::clear>
^Swoole\BufferLast updated: Mon, 26 Oct 2026