sort multi array php

49

php sort multidimensional array -

array_multisort(array_map(function($element) {
      return $element['order'];
  }, $array), SORT_ASC, $array);

print_r($array);

Comments

Submit
0 Comments