- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
function filterByMinMax($array, $key, $by = 'max') {
if (!is_array($array) || count($array) == 0) return false;
$govn9ashka = $array[0];
foreach($array as $a) {
if ($by == 'max') {
if ($a[$key] > $govn9ashka[$key]) {
$govn9ashka = $a;
}
} else {
if ($a[$key] < $find[$key]) {
$govn9ashka = $a;
}
}
}
return $govn9ashka;
}
AnalPerOral 26.01.2018 16:51 # 0
AnalPerOral 26.01.2018 20:09 # 0