2012-06-19 110 views

回答

2
usort($array, function($a, $b){ 
    $a = $a['population']; 
    $b = $b['population']; 

    if ($a == $b) { return 0; } 
    return ($a < $b) ? -1 : 1; 
}); 

print_r($array);