Gen. partnerAlgotech

PHP function array_multisort()

Sort multiple or multi-dimensional arrays

|
September 11, 2019

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

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.