array_multisort php function

Published: 28 December 2022
on channel: PHPeasy
157
1

array_multisort — Sort multiple or multi-dimensional arrays
Description
array_multisort(
    array &$array1,
    mixed $array1_sort_order = SORT_ASC,
    mixed $array1_sort_flags = SORT_REGULAR,
    mixed ...$rest
): bool

array_multisort() can be used to sort several arrays at once, or a multi-dimensional array by one or more dimensions.

Associative (string) keys will be maintained, but numeric keys will be re-indexed.

Note:

If two members compare as equal, they retain their original order. Prior to PHP 8.0.0, their relative order in the sorted array was undefined.

Note:

Resets array's internal pointer to the first element.


On this page of the site you can watch the video online array_multisort php function with a duration of hours minute second in good quality, which was uploaded by the user PHPeasy 28 December 2022, share the link with friends and acquaintances, this video has already been watched 157 times on youtube and it was liked by 1 viewers. Enjoy your viewing!