array_diff

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Computes the difference of arrays
<?php array_diff(array $array, array ...$arrays): array
<?php             $locale = Site::current()->handle();

        }



        return array_values(array_diff($this->getLocales(), [$locale]));

    }
<?php     public function except($keys)

    {

        return $this->select(array_diff($this->keys(), Arr::wrap($keys)));

    }



    public function select($keys = null)
<?php                 $tree->save();

            }



            foreach (array_diff($existingSites, $sites) as $site) {

                $nav->in($site)->delete();

            }

        }
<?php         $fields = $this->resource->selectedQueryColumns() ?? $this->resource->augmented()->keys();




        $fields = array_diff($fields, ['entries']);



        return $this->resource

            ->toAugmentedCollection($fields)
<?php     protected function registerCoreModifiers()

    {

        $modifiers = collect();

        $methods = array_diff(get_class_methods(CoreModifiers::class), get_class_methods(Modifier::class));



        foreach ($methods as $method) {

            $modifiers[Str::snake($method)] = CoreModifiers::class.'@'.$method;
<?php                 'ul', 'var', 'video', 'wbr',

            ];



            $allowed_tags = array_diff($all_tags, $tags_list);

            $allowed_tag_string = '<'.join('><', $allowed_tags).'>';



            return strip_tags($html, $allowed_tag_string);