Gen. partnerAlgotech

PHP function uasort()

Sort fields using a user-defined comparison function and preserve index assignments

|
September 11, 2019

Availability in PHP 4.0

Sort fields using a user-defined comparison function and preserve index assignments

Parameters

Parameter Data type Default value Note
$array array not Input array.
$cmp_function callback not For examples of user-defined comparison functions, see usort and uksort.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official uasort documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.