Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3499

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>variant_mul</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="COM and .Net (Windows)"
HREF="ref.com.html"><LINK
REL="PREVIOUS"
TITLE="variant_mod"
HREF="function.variant-mod.html"><LINK
REL="NEXT"
TITLE="variant_neg"
HREF="function.variant-neg.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.variant-mod.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.variant-neg.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.variant-mul"
></A
>variant_mul</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN11468"
></A
><P
>    (PHP 5)</P
>variant_mul&nbsp;--&nbsp;
     multiplies the values of the two variants and returns the result
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN11471"
></A
><H2
>Description</H2
>mixed <B
CLASS="methodname"
>variant_mul</B
> ( mixed left, mixed right)<BR
></BR
><P
>&#13;      Multiplies <VAR
CLASS="parameter"
>left</VAR
> by <VAR
CLASS="parameter"
>right</VAR
> and
      returns the result, subject to the following rules:
 
      <DIV
CLASS="table"
><A
NAME="AEN11485"
></A
><P
><B
>Tabel 1. Variant Multiplication Rules</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>If</TH
><TH
>Then</TH
></TR
></THEAD
><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
></DIV
>
   </P
><P
>&#13;    Boolean values are converted to -1 for <TT
CLASS="constant"
><B
>FALSE</B
></TT
> and 0 for <TT
CLASS="constant"
><B
>TRUE</B
></TT
>.
   </P
><P
>&#13;     See also <A
HREF="function.variant-div.html"
><B
CLASS="function"
>variant_div()</B
></A
>,
     <A
HREF="function.variant-idiv.html"
><B
CLASS="function"
>variant_idiv()</B
></A
>.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </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
 <TT
CLASS="constant"
><B
>NULL</B
></TT
>), 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"
>VARIANT</A
> class.  COM and DOTNET objects
 will have the value of their default property taken and used as the variant value.
</P
><P
>&#13; 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
 variant_add() in PHP corresponds to VarAdd() in the MSDN documentation.
</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.variant-mod.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.variant-neg.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>variant_mod</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.com.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>variant_neg</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>