- var_dump: documentation ( source)
- round: documentation ( source)
<?php
var_dump(round(152.77499999999998,2));
$newPrice = [
'bagr' => 500,
'chleba' => 500,
'rizek' => 400
];
$origPrice = [
'bagr' => 500,
'chleba' => 400,
'rizek' => 500
];
var_dump($newPrice < $origPrice);