📜  按键排序数组 php - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.029000             🧑  作者: Mango

代码示例6
$price = array_column($inventory, 'price'); //price is a key for the sort
array_multisort($price, SORT_DESC, $inventory);