round() doesn't work
Posted: Fri Feb 26, 2010 5:58 am
Why doesn't this line of code works:
echo round(8.5, 0, PHP_ROUND_HALF_UP);
It displays me this error:
Wrong parameter count for round()
It's so strange because I copy and pasted it from the php manual http://php.net/manual/en/function.round.php
echo round(8.5, 0, PHP_ROUND_HALF_UP);
It displays me this error:
Wrong parameter count for round()
It's so strange because I copy and pasted it from the php manual http://php.net/manual/en/function.round.php