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
round() doesn't work
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: round() doesn't work
The third parameter is introduced in PHP 5.3.0
In PHP 5.2, there are only 2 parameters available
In PHP 5.2, there are only 2 parameters available
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: round() doesn't work
Thnx man 