variant::__construct
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
variant::__construct — variant class constructor
Description
$value = null, int $type = VT_EMPTY, int $codepage = CP_ACP)Constructs a new variant object.
Parameters
value
Initial value. If omitted, or set to null an VT_EMPTY object is created.
type
Specifies the content type of the variant object. Possible values are
one of the VT_* 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
Specifies the codepage that is used to convert strings to unicode. See the parameter of the same name in the com class for more information.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
