function.variant-get-type.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 84 行

HTML
84 行
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Returns the type of a variant object</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.variant-fix.html">variant_fix</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.variant-idiv.html">variant_idiv</a></div> <div class="up"><a href="ref.com.html">COM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.variant-get-type" class="refentry"> <div class="refnamediv">  <h1 class="refname">variant_get_type</h1>  <p class="verinfo">(PHP 5)</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">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">int</span> <span class="methodname"><b><b>variant_get_type</b></b></span>    ( <span class="methodparam"><span class="type"><a href="class.variant.html" class="type variant">variant</a></span> <tt class="parameter">$variant</tt></span>   )</div>  <p class="para rdfs-comment">   Returns the type of a variant object.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">variant</tt></i></span>     <dd>      <p class="para">       The variant object.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   This function returns an integer value that indicates the type of   <i><tt class="parameter">variant</tt></i>, which can be an instance of   <a href="class.com.html" class="xref">COM</a>, <a href="class.dotnet.html" class="xref">DOTNET</a> or   <a href="class.variant.html" class="xref">VARIANT</a> classes.  The return value can be compared   to one of the <b><tt>VT_XXX</tt></b> constants.  </p>  <p class="para">   The return value for COM and DOTNET objects will usually be   <b><tt>VT_DISPATCH</tt></b>; the only reason this function works for   those classes is because COM and DOTNET are descendants of VARIANT.  </p>  <p class="para">   In PHP versions prior to 5, you could obtain this information from   instances of the VARIANT class ONLY, by reading a fake   <i><tt class="parameter">type</tt></i> property.  See the <a href="class.variant.html" class="xref">VARIANT</a> class for more information on   this.  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.variant-fix.html">variant_fix</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.variant-idiv.html">variant_idiv</a></div> <div class="up"><a href="ref.com.html">COM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?