2024 年 PHP Conference Japan

swoole_async_writefile

(PECL swoole >= 1.9.0)

swoole_async_writefile非同步寫入資料到檔案

說明

swoole_async_writefile(
    字串 $filename,
    字串 $content,
    可呼叫的 (Callable) $callback = ?,
    整數 (int) $flags = 0
): 布林值 (bool)

參數

filename

要寫入的檔案名稱。

content

要寫入檔案的內容。

callback

flags

回傳值

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

新增註解

使用者貢獻的註解

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