<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.variant-mod.php',
    1 => 'variant_mod',
    2 => 'Divides two variants and returns only the remainder',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM 函数',
  ),
  'prev' => 
  array (
    0 => 'function.variant-int.php',
    1 => 'variant_int',
  ),
  'next' => 
  array (
    0 => 'function.variant-mul.php',
    1 => 'variant_mul',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/functions/variant-mod.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.variant-mod" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_mod</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant_mod</span> &mdash; <span class="dc-title">Divides two variants and returns only the remainder</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-mod-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_mod</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$left</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$right</code></span>): <span class="type"><a href="class.variant.php" class="type variant">variant</a></span></div>

  <p class="para rdfs-comment">
   Divides <code class="parameter">left</code> by <code class="parameter">right</code> and
   returns the remainder.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-mod-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">left</code></dt>
     <dd>
      <p class="para">
       The left operand.
      </p>
     </dd>
    
    
     <dt><code class="parameter">right</code></dt>
     <dd>
      <p class="para">
       The right operand.
      </p>
     </dd>
    
   </dl>
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
<p class="para">
 对于所有变量运算函数，本函数的参数可以是 PHP
 内置的类型（整数，字符串，浮点数，布尔型或者
 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>），或者是一个 COM，VARIANT 或者 DOTNET 类的实例。PHP
 内置类型将会使用和构造<a href="class.variant.php" class="xref">variant</a>类相同的规则转换成变量。COM 和 DOTNET
 对象的值将会取其默认属性并被当成变量值使用。
</p>
<p class="para">
 变量运算函数是同名函数在 COM
 库中的外包；有关此类函数的更多信息参见 MSDN
 库。PHP 函数命名有少许区别，例如 PHP
 中的 <span class="function"><a href="function.variant-add.php" class="function">variant_add()</a></span> 对应于
 MSDN 文档中的 <code class="literal">VarAdd()</code>。
</p>
</p></blockquote>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-mod-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the remainder of the division.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.variant-mod-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.com-exception.php" class="classname">com_exception</a></span> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.variant-mod-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.variant-div.php" class="function" rel="rdfs-seeAlso">variant_div()</a> - Returns the result from dividing two variants</span></li>
    <li><span class="function"><a href="function.variant-idiv.php" class="function" rel="rdfs-seeAlso">variant_idiv()</a> - Converts variants to integers and then returns the result from dividing them</span></li>
   </ul>
  </p>
 </div>

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