<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.com.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.variant-get-type.php',
    1 => 'variant_get_type',
    2 => 'Returns the type of a variant object',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM Funzioni',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.variant-get-type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_get_type</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant_get_type</span> &mdash; <span class="dc-title">Returns the type of a variant object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-get-type-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_get_type</strong></span>(<span class="methodparam"><span class="type"><a href="class.variant.php" class="type variant">variant</a></span> <code class="parameter">$variant</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Returns the type of a variant object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-get-type-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">variant</code></dt>
     <dd>
      <p class="para">
       The variant object.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-get-type-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   This function returns an integer value that indicates the type of
   <code class="parameter">variant</code>, which can be an instance of
   <a href="class.com.php" class="xref">com</a>, <a href="class.dotnet.php" class="xref">dotnet</a> or
   <a href="class.variant.php" class="xref">variant</a> classes.  The return value can be compared
   to one of the <strong><code><a href="com.constants.php#constant.vt-null">VT_<span class="replaceable">*</span></a></code></strong> constants.
  </p>
  <p class="para">
   The return value for COM and DOTNET objects will usually be
   <strong><code><a href="com.constants.php#constant.vt-dispatch">VT_DISPATCH</a></code></strong>; the only reason this function works for
   those classes is because COM and DOTNET are descendants of VARIANT.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.variant-get-type-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.variant-set-type.php" class="function" rel="rdfs-seeAlso">variant_set_type()</a> - Convert a variant into another type &quot;in-place&quot;</span></li>
   </ul>
  </p>
 </div>

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