- print_r: documentation ( source)
- ksort: documentation ( source)
<?php
$map = array(array('-1'=>0, '-10'=>0, '-100'=>0), array(array('-1'=>0, '-10'=>0, '-100'=>0)));
// function ksort_recursive($array){
// if (is_array($array)) {
// ksort($array);
// foreach ($array as $k => $v) {
// $array[$k] = call_user_func(__FUNCTION__, $v);
// }
// }
// return $array;
// }
// $map = ksort_recursive($map);
ksort($map[0]);
ksort($map[0]);
ksort($map[0]);
ksort($map[1][0]);
ksort($map[1][0]);
ksort($map[1][0]);
print_r($map);