📜  php 关联数组中的最大值 - PHP 代码示例

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

代码示例1
 3, "Bikes" => 6, "Cars" => 11);
$value = max($myarrayassoc);
$key = array_search($value, $myarrayassoc);
echo "The max value is: ".$value.", its key is: ".$key;
?>