2013-05-21 PHPの連想配列でキーでソートする方法 $hoge = array('key1' => 0, 'key2' => 2, 'key3' => 5); array_multisort(array_keys($hoge), SORT_ASC, $hoge);