(PHP 5, PHP 7)
Returns the integer portion of a variant
mixed variant_int ( mixed $variant )
Gets the integer portion of a variant.
Parameters:
variant
The variant.
Returns:
If variant
is negative, then the first negative integer greater than or equal to the variant is returned, otherwise returns the integer portion of the value of variant
.
See also:
floor() -
ceil() -
round() -
Please login to continue.