<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.variant.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'variant.construct.php',
    1 => 'variant::__construct',
    2 => 'variant class constructor',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="variant.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant::__construct</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant::__construct</span> &mdash; <span class="dc-title">variant class constructor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-variant.construct-description">
  <h3 class="title">Опис</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>variant::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code><span class="initializer"> = <strong><code><a href="com.constants.php#constant.vt-empty">VT_EMPTY</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$codepage</code><span class="initializer"> = <strong><code><a href="com.constants.php#constant.cp-acp">CP_ACP</a></code></strong></span></span>)</div>

  <p class="para rdfs-comment">
   Constructs a new variant object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-variant.construct-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <span class="simpara">
      Initial value. If omitted, or set to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> an VT_EMPTY object is created.
     </span>
    </dd>
   
   
    <dt><code class="parameter">type</code></dt>
    <dd>
     <span class="simpara">
      Specifies the content type of the variant object. Possible values are
      one of the <strong><code><a href="com.constants.php#constant.vt-null">VT_<span class="replaceable">*</span></a></code></strong> <a href="com.constants.php" class="xref">Попередньо визначені константи</a>.
     </span>
     <span class="simpara">
      PHP can detect parameters passed by reference
      automatically; they do not even need to be passed as variant objects.
     </span>
     <span class="simpara">
      Consult the <abbr title="Microsoft Developer Network">MSDN</abbr> library for additional information
      on the VARIANT type.
     </span>
    </dd>
   
   
    <dt><code class="parameter">codepage</code></dt>
    <dd>
     <span class="simpara">
      Specifies the codepage that is used to convert strings to
      unicode.  See the parameter of the same name in the
      <a href="class.com.php" class="xref">com</a> class for more information.
     </span>
    </dd>
   
  </dl>
 </div>


</div><?php manual_footer($setup); ?>