variant::__construct

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

variant::__constructvariant クラスのコンストラクタ

説明

public function variant::__construct(mixed $value = null, int $type = VT_EMPTY, int $codepage = CP_ACP)

新しい variant オブジェクトを構築します。

パラメータ

value

初期値。省略するか null を設定すると、VT_EMPTY オブジェクトが作成されます。

type

variant オブジェクトの型を指定します。 有効な値は 定義済み定数VT_* のうちの一つです。

PHP は参照渡しを自動で認識できます。 つまり、variant オブジェクトとして渡す必要すらないということです。

VARIANT 型に関する追加情報は、MSDN ライブラリを調べてください。

codepage

文字列をUnicodeに変換するのに使うコードページ。 詳細な情報は com クラスの同じ名前のパラメータを参照ください。

add a note

User Contributed Notes

There are no user contributed notes for this page.