📅  最后修改于: 2022-03-11 14:54:24.586000             🧑  作者: Mango
public function flip($arr) {
$out = array();
foreach ($arr as $key => $subarr) {
foreach ($subarr as $subkey => $subvalue) {
$out[$subkey][$key] = $subvalue;
}
}
return $out;
}