function findMinIndex($array, $field) {
$minValue = null;
$minIndex = null;
foreach ($array as $index => $item) {
if (isset($item[$field])) {
if ($minValue === null || $item[$field] < $minValue) {
$minValue = $item[$field];
$minIndex = $index;
}
}
}
return $minIndex;
}
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/114186.html<