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         })();



        $loadedClasses = array_values(

            array_diff(

                get_declared_classes(),

                array_merge(

                    self::$declaredClasses,

                    self::$loadedClasses

                )

            )

        );



        self::$loadedClasses = array_merge($loadedClasses, self::$loadedClasses);
<?php         return Targeted::make(

            $this,

            fn (ObjectDescription $object): bool => count($interfaces) === count($object->reflectionClass->getInterfaceNames())

                && array_diff($interfaces, $object->reflectionClass->getInterfaceNames()) === [],

            "to only implement '".implode("', '", $interfaces)."'",

            FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')),

        );
<?php                 $scannedDir = scandir($path);

                assert(is_array($scannedDir));



                $files = array_diff($scannedDir, ['.', '..']);



                foreach ($files as $file) {

                    if (is_dir($path.'/'.$file)) {