[top] => Array
(
[value_index] => Array
(
[0] => 220
[1] => 500
[2] => 200
)
[value] => Array
(
[0] => Стекло
[1] => Металл
[2] => Дерево
)
)
$value = array_combine($data['value_index'], $data['value'])[min($data['value_index'])];
$value = $data['value'][array_search(min($data['value_index']), $data['value_index'])];
$index = 0;
for ($i = 1; $i < count($data['value_index']); $i++) {
if ($data['value_index'][$i] < $data['value_index'][$index]) {
$index = $i;
}
}
$value = $data['value'][$index];