Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Create array containing variables and their values
<?php compact(array|string $var_name, array|string ...$var_names): array
<?php             [, $variableName, $viewFile] = $matches;

            $variableName = ltrim($variableName, '$');



            return compact('variableName', 'viewFile');

        }



        return null;
<?php     public function makeCurlRequest(string $verb, string $fullUrl, array $headers = [], array $arguments = []): Response

    {

        $this->requests[] = compact('verb', 'fullUrl', 'headers', 'arguments');



        return new Response(['http_code' => 200], 'my response', '');

    }