Home > PHP > Function > COM > variant_fix()

variant_fix()

variant_fix - Returns the integer portion of a variant

Syntax

mixed variant_fix (mixed $variant)

Arguments

  • variant - The variant.

Description

Gets the integer portion of a variant.

Version

PHP 5

Return value

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.