The Array_multisort () function returns a sorted array. You can enter one or more arrays. The function first sorts the first array, then the other arrays, and if two or more values are the same, it sorts the next array.
Encountered this error is caused by two array contrast inconsistency,
If a one-dimensional array is sorted with a two-dimensional array, it can be resolved in the following ways:
Using this method, it would be more troublesome to extract the age to be stored in a one-dimensional array, and then in ascending order. The specific code is as follows:
Copy the Code code as follows:
$ages = Array ();
foreach ($users as $user) {
$ages [] = $user [' Age '];
}
Array_multisort ($ages, SORT_ASC, $users);
This article is from the "12380959" blog, please be sure to keep this source http://12390959.blog.51cto.com/12380959/1966839
PHP Warning:array_multisort (): Array sizes is inconsistent