Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>var_dump</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="Variabile - funcþii"
HREF="ref.variables.html"><LINK
REL="PREVIOUS"
TITLE="unset"
HREF="function.unset.html"><LINK
REL="NEXT"
TITLE="var_export"
HREF="function.var-export.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.unset.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.var-export.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.var-dump"
></A
>var_dump</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN121389"
></A
><P
>    (PHP 3&#62;= 3.0.5, PHP 4 , PHP 5)</P
>var_dump&nbsp;--&nbsp;Afiºeazã informaþii despre o variabilã</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN121392"
></A
><H2
>Descriere</H2
>void <B
CLASS="methodname"
>var_dump</B
> ( mixed expression [, mixed expression [, ...]])<BR
></BR
><P
>&#13;     Aceastã funcþie afiºeazã o informaþie structuratã despre una sau mai multe
     variabile. Tablourile sunt explorate recursiv pentru a afiºa valorile
     în aceastã structurã.
    </P
><DIV
CLASS="tip"
><BLOCKQUOTE
CLASS="tip"
><P
><B
>Indica&#254;ie: </B
>Cum toate funcþiile afiºeazã
rezultatele direct cãtre browser, se pot folosi
<A
HREF="ref.outcontrol.html"
>funcþiile de control a ieºirii</A
>
pentru a captura rezultatul acestei funcþii ºi a-l salva, de exemplu,
într-un <A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
>.</P
></BLOCKQUOTE
></DIV
><P
>&#13;     Comparaþi <B
CLASS="function"
>var_dump()</B
> cu
     <A
HREF="function.print-r.html"
><B
CLASS="function"
>print_r()</B
></A
>.
    </P
><P
>&#13;     <DIV
CLASS="informalexample"
><P
></P
><A
NAME="AEN121414"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />$a </font><font color="#007700">= array (</font><font color="#0000BB">1</font><font color="#007700">, </font><font color="#0000BB">2</font><font color="#007700">, array (</font><font color="#DD0000">"a"</font><font color="#007700">, </font><font color="#DD0000">"b"</font><font color="#007700">, </font><font color="#DD0000">"c"</font><font color="#007700">));<br /></font><font color="#0000BB">var_dump </font><font color="#007700">(</font><font color="#0000BB">$a</font><font color="#007700">);<br /><br /></font><font color="#FF8000">/* afiºeazã:<br />array(3) {<br />&nbsp;&nbsp;[0]=&gt;<br />&nbsp;&nbsp;int(1)<br />&nbsp;&nbsp;[1]=&gt;<br />&nbsp;&nbsp;int(2)<br />&nbsp;&nbsp;[2]=&gt;<br />&nbsp;&nbsp;array(3) {<br />&nbsp;&nbsp;&nbsp;&nbsp;[0]=&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;string(1) "a"<br />&nbsp;&nbsp;&nbsp;&nbsp;[1]=&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;string(1) "b"<br />&nbsp;&nbsp;&nbsp;&nbsp;[2]=&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;string(1) "c"<br />&nbsp;&nbsp;}<br />}<br /><br />*/<br /><br /></font><font color="#0000BB">$b </font><font color="#007700">= </font><font color="#0000BB">3.1</font><font color="#007700">;<br /></font><font color="#0000BB">$c </font><font color="#007700">= </font><font color="#0000BB">TRUE</font><font color="#007700">;<br /></font><font color="#0000BB">var_dump</font><font color="#007700">(</font><font color="#0000BB">$b</font><font color="#007700">,</font><font color="#0000BB">$c</font><font color="#007700">);<br /><br /></font><font color="#FF8000">/* afiºeazã:<br />float(3.1)<br />bool(true)<br /><br />*/<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
><P
></P
></DIV
>
    </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.unset.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.var-export.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>unset</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.variables.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>var_export</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>