array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'variant.construct.php', 1 => 'variant::__construct', ), 'up' => array ( 0 => 'class.variant.php', 1 => 'variant', ), 'prev' => array ( 0 => 'class.variant.php', 1 => 'variant', ), 'next' => array ( 0 => 'class.compersisthelper.php', 1 => 'COMPersistHelper', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/com/variant/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
variant::__construct — variant class constructor
Constructs a new variant object.
value
null
an VT_EMPTY object is created.
type
VT_XXX
Predefined Constants.
PHP can detect parameters passed by reference
automatically; they do not even need to be passed as variant objects.
Consult the MSDN library for additional information
on the VARIANT type.
codepage