variant_fix

(PHP 5, PHP 7)
Returns the integer portion of a variant
mixed variant_fix ( 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:

variant_int() -

variant_round() -

floor() -

ceil() -

round() -

doc_php
2016-02-24 16:14:27
Comments
Leave a Comment

Please login to continue.