php search multidimensional array for multiple values

106

$key = array_search('100', array_column($userdb, 'uid'));
function arraySort($input,$sortkey){
  foreach ($input as $key=>$val) $output[$val[$sortkey]][]=$val;
  return $output;
}

Comments

Submit
0 Comments