asort

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array in ascending order and maintain index association
<?php asort(array &$array, int $flags = SORT_REGULAR): true
<?php         $callback && is_callable($callback)

            ? uasort($items, $callback)

            : asort($items, $callback ?? SORT_REGULAR);



        return new static($items);

    }
<?php         }



        $descending ? arsort($results, $options)

            : asort($results, $options);
<?php             }

            $similarPackages[$result['name']] = levenshtein($package, $result['name']);

        }

        asort($similarPackages);



        return array_keys(array_slice($similarPackages, 0, 5));

    }
<?php             }



            array_walk($array, $transform);

            asort($array);

            array_walk($array, $restore);

        };
<?php         if (!$this->sorted) {

            $this->sorted = true;

            \asort($this->schedule);

        }



        return \reset($this->schedule);
<?php         if (!$this->sorted) {

            $this->sorted = true;

            \asort($this->schedule);

        }



        $time = $this->updateTime();