1
0
mirror of https://github.com/php/doc-es.git synced 2026-04-23 23:28:22 +02:00
Files
archived-doc-es/reference/var/functions/var-dump.xml
T
Yago Ferrer 65c5cc5bdb Anonymous 37485 fixed typo
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@332531 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-30 16:47:30 +00:00

141 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f0d05b38c3dd79b8a2368ec4ec03716c24766d90 Maintainer: yago Status: ready -->
<!-- Reviewed: no -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.84 -->
<refentry xml:id="function.var-dump" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>var_dump</refname>
<refpurpose>Muestra información sobre una variable</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>var_dump</methodname>
<methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
</methodsynopsis>
<simpara>
Esta función muestra información estructurada sobre una o más
expresiones incluyendo su tipo y valor. Las matrices y los objetos son
explorados recursivamente con valores sangrados para mostrar su estructura.
</simpara>
<simpara>
En PHP 5 todas las propiedades públicas, privadas y
protegidas de los objetos serán devueltas en la salida.
</simpara>
&tip.ob-capture;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>expresion</parameter></term>
<listitem>
<para>
La variable que desea vacíar la información.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Ejemplo <function>var_dump</function></title>
<programlisting role="php">
<![CDATA[
<?php
$a = array(1, 2, array("a", "b", "c"));
var_dump($a);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
array(3) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(1) "c"
}
}
]]>
</screen>
<programlisting role="php">
<![CDATA[
<?php
$b = 3.1;
$c = true;
var_dump($b, $c);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
float(3.1)
bool(true)
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>print_r</function></member>
<member><function>debug_zval_dump</function></member>
<member><function>var_export</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->