Swoole\Async::readFile
PHP Manual
PHP Manual»Swoole\Async»Swoole\Async::readFile

Swoole\Async::readFile

(PECL swoole >= 1.9.0)

Swoole\Async::readFileRead a file asynchronously.

Descrizione

public static function Swoole\Async::readFile(string $filename, callable $callback): void

Elenco dei parametri

filename

The filename of the file being read.

callback
function callback(string $filename, string $content): mixed
filename

The name of the file.

content
The content read from the file.
To Top