PHP Conference Japan 2024

swoole_async_write

(PECL swoole >= 1.9.0)

swoole_async_write非同步寫入資料到檔案串流

說明

swoole_async_write(
    字串 $filename,
    字串 $content,
    整數 $offset = ?,
    可呼叫 $callback = ?
): 布林值

參數

filename

要寫入的檔案名稱。

content

寫入檔案的內容。

offset

偏移量。

callback

回傳值

成功時返回 true,失敗時返回 false

新增註解

使用者貢獻的註解

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