Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ksortRecursive(&$array, $sort_flags = SORT_REGULAR) {
- if (!is_array($array)) return false;
- ksort($array, $sort_flags);
- foreach ($array as &$arr) {
- ksortRecursive($arr, $sort_flags);
- }
- return true;
- }
Add Comment
Please, Sign In to add comment