Supported Versions: PHP 5, PHP 7, PHP 8
Creates an array by using one array for keys and another for its values
<?php array_combine(array $keys, array $values): array
<?php             return array_fill_keys($keys, null);

        }



        return array_combine($keys, $values);

    }
<?php             $items = array_map($callback, $array);

        }



        return array_combine($keys, $items);

    }
<?php     public function combine($values)

    {

        return new static(array_combine($this->all(), $this->getArrayableItems($values)));

    }
<?php         }



        return $this->getArrayableItems(

            array_combine($this->appends, $this->appends)

        );

    }
<?php             return $models;

        }



        return array_combine(array_map(function ($model) {

            return (new $model)->getTable();

        }, $models), $models);

    }
<?php         if ($extensions) {

            $keys = array_map([Str::class, 'snake'], array_keys($extensions));



            $extensions = array_combine($keys, array_values($extensions));

        }



        $this->extensions = array_merge($this->extensions, $extensions);
<?php         if ($replacers) {

            $keys = array_map([Str::class, 'snake'], array_keys($replacers));



            $replacers = array_combine($keys, array_values($replacers));

        }



        $this->replacers = array_merge($this->replacers, $replacers);