SyntaxFix
Write A Post
Hire A Developer
Questions
Use round, floor or ceil methods to round it to the closest integer, along with intval() which is limited.
round
floor
ceil
intval()
http://php.net/manual/en/function.round.php
http://php.net/manual/en/function.ceil.php
http://php.net/manual/en/function.floor.php