PHP function uasort()
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.