📅  最后修改于: 2022-03-11 14:53:57.393000             🧑  作者: Mango
function buildSorter($key) {
return function ($a, $b) use ($key) {
return strnatcmp($a[$key], $b[$key]);
};
}
usort($array, buildSorter('key_b'));