Name
uasort
Synopsis
bool uasort(arrayarray
, callablefunction
)
Sorts an array using a user-defined function, maintaining the
keys for the values. See Chapter 5 and usort()
for more information on using this
function. Returns true
if the array
was successfully sorted, or false
otherwise.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.