← All docs
uasort()
Sorts an array with a user-defined comparison function and maintains index association.
uasort()
function uasort(array $array, callable $callback): bool
Sorts an array with a user-defined comparison function and maintains index association.
Parameters:
$array(array), passed by reference$callback(callable)
Returns: bool
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how uasort is implemented in the compiler, see the internals page.