PHP.nl

swoole_async_readfile

swoole_async_readfile

Read a file asynchronously

bool **swoole_async_readfile** string $filename callable $callback

filenameThe filename of the file being read.

`callback````php mixed **** string $filename string $content


`filename`The name of the file.

`content`The content read from the file.

return.success