Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Exchanges all keys with their associated values in an array
<?php array_flip(array $array): array
<?php         $now = Carbon::now();



        return array_merge(collect(array_flip($keys))->map(function () {


        })->all(), collect($response['Responses'][$this->table])->mapWithKeys(function ($response) use ($now) {

            if ($this->isExpired($response, $now)) {
<?php     public static function only($array, $keys)

    {

        return array_intersect_key($array, array_flip((array) $keys));

    }
<?php     public function flip()

    {

        return new static(array_flip($this->items));

    }
<?php     public function has($key)

    {

        $keys = array_flip(is_array($key) ? $key : func_get_args());

        $count = count($keys);



        foreach ($this as $key => $value) {
<?php     public function hasAny($key)

    {

        $keys = array_flip(is_array($key) ? $key : func_get_args());



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

            if (array_key_exists($key, $keys)) {
<?php             if (is_null($keys)) {

                yield from $this;

            } else {

                $keys = array_flip($keys);



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

                    if (array_key_exists($key, $keys)) {
<?php     public function without($relations)

    {

        $this->eagerLoad = array_diff_key($this->eagerLoad, array_flip(

            is_string($relations) ? func_get_args() : $relations

        ));



        return $this;

    }
<?php     protected function fillableFromArray(array $attributes)

    {

        if (count($this->getFillable()) > 0 && ! static::$unguarded) {

            return array_intersect_key($attributes, array_flip($this->getFillable()));

        }



        return $attributes;
<?php     protected function getArrayableItems(array $values)

    {

        if (count($this->getVisible()) > 0) {

            $values = array_intersect_key($values, array_flip($this->getVisible()));

        }



        if (count($this->getHidden()) > 0) {
<?php         }



        if (count($this->getHidden()) > 0) {

            $values = array_diff_key($values, array_flip($this->getHidden()));

        }



        return $values;
<?php         $attach = array_diff_key($records, array_flip($detach));



        if (count($attach) > 0) {

            $this->attach($attach, [], false);
<?php             ? $this->container->call([$this, 'run'], $parameters)

            : $this->run(...$parameters);



        $uses = array_flip(class_uses_recursive(static::class));



        if (isset($uses[WithoutModelEvents::class])) {

            $callback = $this->withoutModelEvents($callback);
<?php     protected function registerApplicationPaths($handler)

    {

        $handler->setApplicationPaths(

            array_flip($this->directoriesExceptVendor())

        );



        return $this;
<?php     protected function directoriesExceptVendor()

    {

        return Arr::except(

            array_flip((new Filesystem)->directories(base_path())),

            [base_path('vendor')]

        );

    }
<?php     protected function setUpTraits()

    {

        $uses = array_flip(class_uses_recursive(static::class));



        if (isset($uses[RefreshDatabase::class])) {

            $this->refreshDatabase();