array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'swoole-coroutine.call-user-func.php', 1 => 'Swoole\\Coroutine::call_user_func', 2 => 'Call a callback given by the first parameter', ), 'up' => array ( 0 => 'class.swoole-coroutine.php', 1 => 'Swoole\\Coroutine', ), 'prev' => array ( 0 => 'class.swoole-coroutine.php', 1 => 'Swoole\\Coroutine', ), 'next' => array ( 0 => 'swoole-coroutine.call-user-func-array.php', 1 => 'Swoole\\Coroutine::call_user_func_array', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/coroutine/call-user-func.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Coroutine::call_user_func

(PECL swoole >= 2.0.0)

Swoole\Coroutine::call_user_funcCall a callback given by the first parameter

Beschreibung

public static 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.

Parameter-Liste

callback

The callable to be called.

args

Zero or more parameters to be passed to the callback.

Rückgabewerte