Answers for "array sort key multidimensional php"

PHP
2

php sort multidimensional array

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

print_r($array);
Posted by: Guest on June-09-2020
2

sort multi array php

$keys = array_column($array, 'Price');

		array_multisort($keys, SORT_ASC, $array);
	
		print_r($array);
Posted by: Guest on August-04-2020

Code answers related to "array sort key multidimensional php"

Browse Popular Code Answers by Language