Guest User

Untitled

a guest
Jan 6th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. function subval_sort($a,$subkey,$sort) {
  2.     foreach($a as $k=>$v) {
  3.         $b[$k] = strtolower($v[$subkey]);
  4.     }
  5.     $sort($b);
  6.     foreach($b as $key=>$val) {
  7.         $c[] = $a[$key];
  8.     }
  9.     return $c;
  10. }
Add Comment
Please, Sign In to add comment