array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.variant-get-type.php', 1 => 'variant_get_type', ), 'up' => array ( 0 => 'ref.com.php', 1 => 'COM Funções', ), 'prev' => array ( 0 => 'function.variant-fix.php', 1 => 'variant_fix', ), 'next' => array ( 0 => 'function.variant-idiv.php', 1 => 'variant_idiv', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/com/functions/variant-get-type.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
variant_get_type — Returns the type of a variant object
variant
The variant object.
This function returns an integer value that indicates the type of
variant
, which can be an instance of
com, dotnet or
variant classes. The return value can be compared
to one of the VT_XXX
constants.
The return value for COM and DOTNET objects will usually be
VT_DISPATCH
; the only reason this function works for
those classes is because COM and DOTNET are descendants of VARIANT.