Answers for "php group multidimensional array by value"

PHP
0

php group multidimensional array by value

function arraySort($input,$sortkey){
  foreach ($input as $key=>$val) $output[$val[$sortkey]][]=$val;
  return $output;
}
Posted by: Guest on July-02-2020

Code answers related to "php group multidimensional array by value"

Browse Popular Code Answers by Language