Home > PHP > Function > COM > variant_get_type()

variant_get_type()

variant_get_type - Returns the type of a variant object

Syntax

int variant_get_type (variant $variant)

Arguments

  • variant - The variant object.

Description

Returns the type of a variant object.

Version

PHP 5

Return value

This function returns an integer value that indicates the type of variant, which can be an instance of COM, DOTNETor VARIANTclasses. The return value can be compared to one of the VT_XXX constants.