Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php sort multidimensional array

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

print_r($array);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #sort #multidimensional #array
ADD COMMENT
Topic
Name
3+3 =