extract

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Import variables into the current symbol table from an array
<?php extract(array &$array, int $flags = EXTR_OVERWRITE, string $prefix = ""): int
<?php             $component = ExtendBlade::currentRendering();



            \Closure::bind(function () use ($__path, $__data) {

                extract($__data, EXTR_SKIP);

                include $__path;

            }, $component, $component)();

        } catch (\Exception|\Throwable $e) {
<?php     protected function compile($view, $data)

    {

        extract($data);



        ob_start();
<?php     protected function getHostDsn(array $config)

    {

        extract($config, EXTR_SKIP);



        return isset($port)

                    ? "mysql:host={$host};port={$port};dbname={$database}"
<?php         extract($config, EXTR_SKIP);



        $host = isset($host) ? "host={$host};" : '';
<?php             $__data = $data;



            return (static function () use ($__path, $__data) {

                extract($__data, EXTR_SKIP);



                return require $__path;

            })();
<?php             $__data = $data;



            return (static function () use ($__path, $__data) {

                extract($__data, EXTR_SKIP);



                return require_once $__path;

            })();
<?php     protected function getDsn(array $config)

    {

        extract($config, EXTR_SKIP);



        $availableDrivers = PDO::getAvailableDrivers();
<?php     private static function compile(string $path, array $data): string

    {

        extract($data);



        ob_start();
<?php         $viewFile = "{$this->viewPath}/{$viewName}.php";



        try {

            extract((array) $_data, EXTR_OVERWRITE);



            include $viewFile;

        } catch (Exception $exception) {
<?php             return '';

        }



        extract($this->getClassAndMethodFromExceptionMessage($throwable->getMessage()), EXTR_OVERWRITE);



        $possibleMethod = $this->findPossibleMethod($class, $method);
<?php             return '';

        }



        extract($this->getClassAndPropertyFromExceptionMessage($throwable->getMessage()), EXTR_OVERWRITE);



        $possibleProperty = $this->findPossibleProperty($class, $property);
<?php     protected function similarPropertyExists(Throwable $throwable)

    {

        extract($this->getClassAndPropertyFromExceptionMessage($throwable->getMessage()), EXTR_OVERWRITE);



        $possibleProperty = $this->findPossibleProperty($class, $property);
<?php     {

        $solutions = [];



        extract($this->getNameAndView($throwable));



        if (! isset($variableName)) {

            return [];
<?php     {

        $viewFile = __DIR__ . '/../../resources/views/errorPage.php';



        extract($data, EXTR_OVERWRITE);



        include $viewFile;

    }
<?php         }




        extract($this->getClassAndMethodFromExceptionMessage($throwable->getMessage()), EXTR_OVERWRITE);



        $possibleMethod = $this->findPossibleMethod($class ?? '', $method ?? '');