In PHP you would use:
$value = floor($value);
floor
: Returns the next lowest integer value by rounding the value down if necessary.
If you wanted to round up it would be:
$value = ceil($value);
ceil
: Returns the next highest integer value by rounding the value up if necessary.