call_user_func

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
<?php call_user_func(callable $callback, mixed ...$args): mixed
<?php         $response = response(SupportPageComponents::renderContentsIntoLayout($html, $layoutConfig));



        if (is_callable($layoutConfig->response)) {

            call_user_func($layoutConfig->response, $response);

        }



        return $response;
<?php         $validator = Validator::make($data, $rules, $messages, $attributes);



        if ($this->withValidatorCallback) {

            call_user_func($this->withValidatorCallback, $validator);



            $this->withValidatorCallback = null;

        }
<?php         $validator = Validator::make($data, $rulesForField, $messages, $attributes);



        if ($this->withValidatorCallback) {

            call_user_func($this->withValidatorCallback, $validator);



            $this->withValidatorCallback = null;

        }