PHP 8.5.0 Alpha 2 available for testing

swoole_async_readfile

(PECL swoole >= 1.9.0)

swoole_async_readfileLee un fichero de manera asíncrona

Descripción

swoole_async_readfile(string $filename, callable $callback): bool

Parámetros

filename

El nombre del fichero a leer.

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

El nombre del fichero.

content

El contenido leído del fichero.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

add a note

User Contributed Notes

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