PHP 8.1.28 Released!

Swoole\Async::readFile

(PECL swoole >= 1.9.0)

Swoole\Async::readFileLê um arquivo de forma assíncrona.

Descrição

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

Parâmetros

filename

O nome do arquivo sendo lido.

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

O nome do arquivo.

content

O conteúdo lido do arquivo.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top