话不多说,直接上代码
$arr = [ ['name' => '网三', 'age' => 33], ['name' => '谢四', 'age' => 22], ['name' => '赵六', 'age' => 33], ['name' => '赵1', 'age' => 23], ['name' => '赵8', 'age' => 13], ]; usort($arr, function($x, $y) { return strcasecmp($x['age'], $y['age']); }); var_dump($arr);