How to get whole part of a number in php Posted on December 14, 2016 by admin <?php $num=7.05; echo floor($num); ?>