⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.variant-mul.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Multiplies the values of the two variants</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-mod.html">variant_mod</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.variant-neg.html">variant_neg</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-mul" class="refentry"> <div class="refnamediv">  <h1 class="refname">variant_mul</h1>  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">variant_mul</span> &mdash; <span class="dc-title">Multiplies the values of the two variants</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><b><b>variant_mul</b></b></span>    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$left</tt></span>   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$right</tt></span>   )</div>  <p class="para rdfs-comment">   Multiplies <i><tt class="parameter">left</tt></i> by <i><tt class="parameter">right</tt></i>.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">left</tt></i></span>     <dd>      <p class="para">       The left operand.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">right</tt></i></span>     <dd>      <p class="para">       The right operand.      </p>     </dd>    </dt>   </dl>   Boolean values are converted to -1 for <b><tt>FALSE</tt></b> and 0 for <b><tt>TRUE</tt></b>.   <blockquote><p><b class="note">Note</b>:  As with all the variant arithmetic functions, the parameters for this function can be either a PHP native type (integer, string, floating point, boolean or <b><tt>NULL</tt></b>), or an instance of a COM, VARIANT or DOTNET class.  PHP native types will be converted to variants using the same rules as found in the constructor for the <a href="class.variant.html" class="xref">VARIANT</a> class.  COM and DOTNET objects will have the value of their default property taken and used as the variant value.<br /> The variant arithmetic functions are wrappers around the similarly named functions in the COM library; for more information on these functions, consult the MSDN library.  The PHP functions are named slightly differently; for example <a href="function.variant-add.html" class="function">variant_add()</a> in PHP corresponds to <i>VarAdd() </i> in the MSDN documentation.<br /></p></blockquote>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   <table border="5">    <caption><b>Variant Multiplication Rules</b></caption>    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">If</th>       <th colspan="1">Then</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Both expressions are of the string, date, character, boolean type</td>       <td colspan="1" rowspan="1" align="left">Multiplication</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">One expression is a string type and the other a       character</td>       <td colspan="1" rowspan="1" align="left">Multiplication</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">One expression is numeric and the other is a string</td>       <td colspan="1" rowspan="1" align="left">Multiplication</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Both expressions are numeric</td>       <td colspan="1" rowspan="1" align="left">Multiplication</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Either expression is NULL</td>       <td colspan="1" rowspan="1" align="left">NULL is returned</td>      </tr>      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">Both expressions are empty</td>       <td colspan="1" rowspan="1" align="left">Empty string is returned</td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.variant-div.html" class="function" rel="rdfs-seeAlso">variant_div()</a></li>    <li class="member"><a href="function.variant-idiv.html" class="function" rel="rdfs-seeAlso">variant_idiv()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.variant-mod.html">variant_mod</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.variant-neg.html">variant_neg</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -