Guest User

Untitled

a guest
Jun 25th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. ksortRecursive(&$array, $sort_flags = SORT_REGULAR) {
  2. if (!is_array($array)) return false;
  3. ksort($array, $sort_flags);
  4. foreach ($array as &$arr) {
  5. ksortRecursive($arr, $sort_flags);
  6. }
  7. return true;
  8. }
Add Comment
Please, Sign In to add comment