array_diff_key

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the difference of arrays using keys for comparison
<?php array_diff_key(array $array, array ...$arrays): array
<?php     public function diffKeys($items)

    {

        return new static(array_diff_key($this->items, $this->getArrayableItems($items)));

    }
<?php     {

        $options = $config['options'] ?? [];



        return array_diff_key($this->options, $options) + $options;

    }
<?php     public function without($relations)

    {

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

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

        ));



        return $this;

    }
<?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             return true;

        }



        return empty(array_diff_key($value, array_fill_keys($parameters, '')));

    }
<?php             $this->passes();

        }



        return array_diff_key(

            $this->data, $this->attributesThatHaveMessages()

        );

    }