krsort

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array by key in descending order
<?php krsort(array &$array, int $flags = SORT_REGULAR): true
<?php         if (! array_is_list($array)) {

            $descending

                    ? krsort($array, $options)

                    : ksort($array, $options);

        } else {

            $descending
<?php     {

        $items = $this->items;



        $descending ? krsort($items, $options) : ksort($items, $options);



        return new static($items);

    }
<?php                 }

            }



            krsort($namespacesToScan);



            foreach ($namespacesToScan as $namespace => $groups) {

                foreach ($groups as $group) {
<?php         $files = $this->parseAutoloadsType($sortedPackageMap, 'files', $rootPackage);

        $exclude = $this->parseAutoloadsType($sortedPackageMap, 'exclude-from-classmap', $rootPackage);



        krsort($psr0);

        krsort($psr4);



        return array(
<?php         $exclude = $this->parseAutoloadsType($sortedPackageMap, 'exclude-from-classmap', $rootPackage);



        krsort($psr0);

        krsort($psr4);



        return array(

            'psr-0' => $psr0,
<?php         if (!isset($this->listeners[$event->getName()][0])) {

            $this->listeners[$event->getName()][0] = array();

        }

        krsort($this->listeners[$event->getName()]);



        $listeners = $this->listeners;

        $listeners[$event->getName()][0] = array_merge($listeners[$event->getName()][0], $scriptListeners);