<?php
$result = [];
$array = [
[116.01, 146.00],
[92.00, 122.02],
[308.00, 278.00]
];
foreach($array as $key => $value) {
$result[$key] = ($value[0] > $value[1]);
}
echo "result:" . PHP_EOL;
echo var_dump($result);
- Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
- result:
array(3) {
[0]=>
bool(false)
[1]=>
bool(false)
[2]=>
bool(true)
}
preferences:
45.81 ms | 408 KiB | 5 Q