php8.5
Home/ Manual/ swoole / coroutine/ Swoole\Coroutine::call_user_func

Swoole\Coroutine::call_user_func

PHP function Edit on GitHub ✎

(PECL swoole >= 2.0.0)

Call a callback given by the first parameter

Description

Swoole\Coroutine::call_user_func(callable $callback, mixed ...$args): mixed

Calls the callback given by the first parameter and passes the remaining parameters as arguments.

Parameters

callback

The callable to be called.

args

Zero or more parameters to be passed to the callback.

Return Values

Source: reference/swoole/swoole/coroutine/call-user-func.xml · from the official PHP manual (php/doc-en)