<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.variant-mul.php',
    1 => 'variant_mul',
    2 => 'Multiplies the values of the two variants',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.variant-mod.php',
    1 => 'variant_mod',
  ),
  'next' => 
  array (
    0 => 'function.variant-neg.php',
    1 => 'variant_neg',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/functions/variant-mul.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.variant-mul" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_mul</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</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" id="refsect1-function.variant-mul-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_mul</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">
   Multiplies <code class="parameter">left</code> by <code class="parameter">right</code>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-mul-parameters">
  <h3 class="title">Parameter-Liste</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>
   Boolean values are converted to -1 for <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> and 0 for <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
   <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
<p class="para">
 Wie bei allen arithmetischen Variantfunktionen, können die Parameter dieser
 Funktion entweder native PHP-Typen (Integer, String, Fließkomma, Boolean
 oder <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>) oder Instanzen einer COM-, VARIANT- oder DOTNET-Klasse sein.
 Native PHP-Typen werden nach den gleichen Regeln in Varianten umgewandelt
 wie auch im Konstruktor der <a href="class.variant.php" class="xref">variant</a>-Klasse.
 Für COM- und DOTNET-Objekte wird der Wert ihrer Standardeigenschaft
 genommen und als Variantenwert genutzt.
</p>
<p class="para">
 Die arithmetischen Variantenfunktionen sind Wrapper für die ähnlich
 benannten Funktionen der COM-Bibliothek, weiterführende Informationen
 hierzu finden sie in der MSDN-Bibliothek. Die PHP-Funktionen sind leicht
 abweichend benannt, so korrespondiert <span class="function"><a href="function.variant-add.php" class="function">variant_add()</a></span>
 in PHP zu VarAdd() in der MSDN-Dokumentation.
</p>
</p></blockquote>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-mul-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Variant Multiplication Rules</strong></caption>
    
     <thead>
      <tr>
       <th>If</th>
       <th>Then</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>Both expressions are of the string, date, character, boolean type</td>
       <td>Multiplication</td>
      </tr>

      <tr>
       <td>One expression is a string type and the other a
       character</td>
       <td>Multiplication</td>
      </tr>

      <tr>
       <td>One expression is numeric and the other is a string</td>
       <td>Multiplication</td>
      </tr>

      <tr>
       <td>Both expressions are numeric</td>
       <td>Multiplication</td>
      </tr>

      <tr>
       <td>Either expression is NULL</td>
       <td>NULL is returned</td>
      </tr>

      <tr>
       <td>Both expressions are empty</td>
       <td>Empty string is returned</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.variant-mul-errors">
  <h3 class="title">Fehler/Exceptions</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-mul-seealso">
  <h3 class="title">Siehe auch</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); ?>