call_user_func_array

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Call a callback with an array of parameters
<?php call_user_func_array(callable $callback, array $args): mixed
<?php         $result = $initial;



        foreach ($this as $key => $value) {

            $result = call_user_func_array($callback, array_merge($result, [$value, $key]));



            if (! is_array($result)) {

                throw new UnexpectedValueException(sprintf(
<?php     private function __callClosure(Closure $closure, array $arguments): mixed

    {

        return ExceptionTrace::ensure(fn (): mixed => call_user_func_array(Closure::bind($closure, $this, $this::class), $arguments));

    }
<?php             }




            return new HigherOrderExpectation($this, call_user_func_array($this->value->$method(...), $parameters));

        }



        $closure = $this->getExpectationClosure($method);
<?php             array_reverse($this->pipes),

            $this->carry(),

            function (): void {

                call_user_func_array($this->closure, $this->passables);

            }

        );
<?php         assert(is_callable($callback));



        try {

            return call_user_func_array($callback, $args);

        } catch (Throwable $e) {

            return false;

        }
<?php             throw new Exception('You should pass at least 1 argument to `ddd`');

        }



        call_user_func_array('dump', $args);



        $handler = app(\Facade\Ignition\ErrorPage\ErrorPageHandler::class);
<?php             return null;

        }



        return call_user_func_array($this->successCallback, [$this]);

    }

}
<?php     {

        $this->hydrate();



        return call_user_func_array([$this, 'traitData'], func_get_args());

    }



    public function hydrate()
<?php     {

        $model = $this->config['model'];



        return call_user_func_array([$model, $method], $args);

    }



    public function query()
<?php                 throw new MethodNotFoundException("The `$method` method doesn't exist.");

            }



            $collection = call_user_func_array([$collection, $method], (array) $arguments);

        }



        return $collection;
<?php     public function __call($method, $args)

    {

        return call_user_func_array([$this->disk(), $method], $args);

    }

}
<?php     public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null, Closure $getSelectFields = null): bool

    {

        if (static::$auth) {

            return call_user_func_array(static::$auth, [$root, $args, $ctx, $resolveInfo, $getSelectFields]);

        }



        return true;
<?php {

    public static function __callStatic($method, $parameters)

    {

        return call_user_func_array([StaticStringy::class, $method], $parameters);

    }
<?php                 }

            }



            $replacement = call_user_func_array($this->callback, [$this, $name, $parameters, $content, $data]);
<?php         $this->newFunctionArrayDereferencingTargets = \array_flip($additionalTargets);

        $targets[] = $additionalTargets;



        return \call_user_func_array('array_merge', $targets);

    }