ArrayIterator::uasort
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.2.0, PHP 7, PHP 8)
Sort with a user-defined comparison function and maintain index association
Description
ArrayIterator::uasort(callable $callback): true
This method sorts the elements such that indices maintain their correlation with the values they are associated with, using a user-defined comparison function.
Sort-unstable
Parameters
callbackDescription
Return Values
Always
Changelog
| Version | Description |
|---|
See Also
ArrayIterator::asortArrayIterator::ksortArrayIterator::natcasesortArrayIterator::natsortArrayIterator::uksortuasort()