php8.5
Home/ Manual/ spl / arrayiterator/ ArrayIterator::asort

ArrayIterator::asort

PHP function Edit on GitHub ✎

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

Sort entries by values

Function-8-6-0

Description

ArrayIterator::asort(int $flags = SORT_REGULAR): true

Sorts entries by their values.

Sort-unstable

Parameters

Return Values

Always

Changelog

VersionDescription
8.6.0This method has been deprecated.

See Also

  • ArrayIterator::ksort
  • ArrayIterator::natcasesort
  • ArrayIterator::natsort
  • ArrayIterator::uasort
  • ArrayIterator::uksort
  • asort()

Source: reference/spl/arrayiterator/asort.xml · from the official PHP manual (php/doc-en)