Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\CoroutineSwoole\Coroutine::call_user_func_array>
^Swoole\CoroutineLast updated: Mon, 26 Oct 2026

Swoole\Coroutine::call_user_func

(PECL swoole >= 2.0.0)

Swoole\Coroutine::call_user_func — Call a callback given by the first parameter

Description

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


<Swoole\CoroutineSwoole\Coroutine::call_user_func_array>
^Swoole\CoroutineLast updated: Mon, 26 Oct 2026