array_multisort()
array_multisort - Sort multiple or multi-dimensional arrays
Syntax
bool array_multisort (
array &$arr,
mixed $arg,
mixed $arg,
mixed $...)
Arguments
- arr - An array being sorted.
- arg - Optionally another array, or sort options for the previous array argument: SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING.
- arg - Additional arg \'s.
- ...
Description
array_multisort() can be used to sort several arrays at once, or a multi-dimensional array by one or more dimensions.
Version
PHP 4, 5
Return value
Returns TRUE on success or FALSE on failure.