php8.5
Home/ Manual/ swoole / async/ Swoole\Async::write

Swoole\Async::write

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Write data to a file stream asynchronously.

Description

Swoole\Async::write(string $filename, string $content, [int $offset], [callable $callback]): void

Parameters

filename

The filename being written.

content

The content writing to the file.

offset

The offset.

callback

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