Last updated 5 years ago
Was this helpful?
$maxValue = max($arr); echo array_search($maxValue, $arr);
结果:
3
- 搜索数组中给定的值并返回键名。