phpday 2027 - Call for Papers

swoole_async_write

(PECL swoole >= 1.9.0)

swoole_async_write — Write data to a file stream asynchronously

Description

function swoole_async_write(
    string $filename,
    string $content,
    int $offset = ?,
    callable $callback = ?
): bool

Parameters

filename

The filename being written.

content

The content writing to the file.

offset

The offset.

callback

Return Values

Returns true on success or false on failure.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top