Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>pow</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="Mathematical Functions"
HREF="ref.math.html"><LINK
REL="PREVIOUS"
TITLE="pi"
HREF="function.pi.html"><LINK
REL="NEXT"
TITLE="rad2deg"
HREF="function.rad2deg.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.pi.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.rad2deg.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.pow"
></A
>pow</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN50825"
></A
><P
>    (PHP 3, PHP 4 , PHP 5)</P
>pow&nbsp;--&nbsp;Exponential expression</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN50828"
></A
><H2
>Description</H2
>number <B
CLASS="methodname"
>pow</B
> ( number base, number exp)<BR
></BR
><P
>&#13;     Returns <VAR
CLASS="parameter"
>base</VAR
> raised to the power of
     <VAR
CLASS="parameter"
>exp</VAR
>. If possible, this function will
     return an <A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>.
    </P
><P
>&#13;     If the power cannot be computed, a warning will be issued,
     and <B
CLASS="function"
>pow()</B
> will return <TT
CLASS="constant"
><B
>FALSE</B
></TT
>. Since PHP 4.2.0
     <B
CLASS="function"
>pow()</B
> doesn't issue any warning.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
      PHP cannot handle negative <VAR
CLASS="parameter"
>base</VAR
>s.
     </P
></BLOCKQUOTE
></DIV
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN50850"
></A
><P
><B
>Exemplu 1. Some examples of <B
CLASS="function"
>pow()</B
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br /><br />var_dump</font><font color="#007700">(</font><font color="#0000BB">pow</font><font color="#007700">(</font><font color="#0000BB">2</font><font color="#007700">, </font><font color="#0000BB">8</font><font color="#007700">)); </font><font color="#FF8000">// int(256)<br /></font><font color="#007700">echo </font><font color="#0000BB">pow</font><font color="#007700">(-</font><font color="#0000BB">1</font><font color="#007700">, </font><font color="#0000BB">20</font><font color="#007700">); </font><font color="#FF8000">// 1<br /></font><font color="#007700">echo </font><font color="#0000BB">pow</font><font color="#007700">(</font><font color="#0000BB">0</font><font color="#007700">, </font><font color="#0000BB">0</font><font color="#007700">); </font><font color="#FF8000">// 1<br /><br /></font><font color="#007700">echo </font><font color="#0000BB">pow</font><font color="#007700">(-</font><font color="#0000BB">1</font><font color="#007700">, </font><font color="#0000BB">5.5</font><font color="#007700">); </font><font color="#FF8000">// error<br /><br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
BORDER="1"
WIDTH="100%"
><TR
><TD
ALIGN="CENTER"
><B
>Avertisment</B
></TD
></TR
><TR
><TD
ALIGN="LEFT"
><P
>&#13;      In PHP 4.0.6 and earlier <B
CLASS="function"
>pow()</B
> always returned
      a <A
HREF="language.types.float.html"
><B
CLASS="type"
>float</B
></A
>, and did not issue warnings.
     </P
></TD
></TR
></TABLE
></DIV
><P
>&#13;     See also:
     <A
HREF="function.exp.html"
><B
CLASS="function"
>exp()</B
></A
>,
     <A
HREF="function.sqrt.html"
><B
CLASS="function"
>sqrt()</B
></A
>,
     <A
HREF="function.bcpow.html"
><B
CLASS="function"
>bcpow()</B
></A
>, and
     <A
HREF="function.gmp-pow.html"
><B
CLASS="function"
>gmp_pow()</B
></A
>,
    </P
></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.pi.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.rad2deg.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>pi</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.math.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>rad2deg</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>