PHP function array_multisort()

Availability in PHP 4.0

Sort multiple or multi-dimensional arrays

Parameters

Parameter Data type Default value Note
$arr array not An array being sorted.
$arg mixed null, Optionally another array, or sort options for the previous array argument: SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING.
$arg mixed null, Optionally another array, or sort options for the previous array argument: SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING.
$_ mixed null

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for the array-multisort function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.