$maxValue = max($arr); echo array_search($maxValue, $arr);
结果:
3
array_search()arrow-up-right - 搜索数组中给定的值并返回键名。
Last updated 6 years ago