I wonder is there a good way to refactor this simple problem, without using round each line, or a foreach... :
<?php
$x =1,999999;
$y = 3.1562;
$z = 4.433232;
$x = round($x);
$y = round($y);
$z = round($z);
?>
Edit : Of course, without using immediatly $x = round(1.9999). (it's just used for the example).
$x=2; $y=3; $z=4;
simple refactoring