2024 年日本 PHP 研討會

Swoole\Async::write

(PECL swoole >= 1.9.0)

Swoole\Async::write非同步寫入資料到檔案串流。

說明

public static Swoole\Async::write(
    字串 $filename,
    字串 $content,
    整數 (int) $offset = ?,
    可呼叫 (callable) $callback = ?
): 無返回值 (void)

參數

filename

正在寫入的檔案名稱。

content

寫入檔案的內容。

offset

偏移量。

callback

新增註釋

使用者貢獻的註釋

此頁面沒有使用者貢獻的註釋。
To Top