Home > PHP > Function > COM > variant_int()

variant_int()

variant_int - Returns the integer portion of a variant

Syntax

mixed variant_int (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.