cvs: phpdoc-pt_BR /reference/array/functions array-values.xml
| From: | Lucas Rocha | Date: | Fri, 06 Sep 2002 12:36:05 +0000 |
| Subject: | cvs: phpdoc-pt_BR /reference/array/functions array-values.xml | ||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-133@lists.php.net to get a copy of this message | ||
lucasr Fri Sep 6 08:36:05 2002 EDT
Modified files:
/phpdoc-pt_BR/reference/array/functions array-values.xml
Log:
Making this file up-to-date
Index: phpdoc-pt_BR/reference/array/functions/array-values.xml
diff -u phpdoc-pt_BR/reference/array/functions/array-values.xml:1.2
phpdoc-pt_BR/reference/array/functions/array-values.xml:1.3
--- phpdoc-pt_BR/reference/array/functions/array-values.xml:1.2 Sat Apr 20 02:15:59 2002
+++ phpdoc-pt_BR/reference/array/functions/array-values.xml Fri Sep 6 08:36:04 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: lucasr Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: lucasr Status: ready -->
<!-- splitted from ./pt_BR/functions/array.xml, last change in rev 1.1 -->
<!-- last change to 'array-values' in en/ tree in rev 1.2 -->
<refentry id="function.array-values">
@@ -8,7 +8,7 @@
<refpurpose>Retorna todos os valores de um array</refpurpose>
</refnamediv>
<refsect1>
- <title>Descrição</title>
+ <title>Descrição</title>
<methodsynopsis>
<type>array</type><methodname>array_values</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
@@ -23,18 +23,30 @@
<programlisting role="php">
<![CDATA[
$array = array ("tamanho" => "G", "cor" =>
"dourado");
-array_values ($array); // retorna o array ("G", "dourado")
+print_r(array_values ($array));
]]>
</programlisting>
+ <para>
+ A saída seria:
+ <screen role="php">
+<![CDATA[
+Array
+(
+ [0] => G
+ [1] => dourado
+)
+]]>
+ </screen>
+ </para>
</example>
</para>
<note>
<para>
- Essa função foi adicionada no PHP 4, abaixo segue uma
implementação para
+ Essa função foi adicionada no PHP 4, abaixo segue uma implementação para
aqueles que ainda usam PHP 3.
<example>
<title>
- Implementação de <function>array_values</function> para
PHP 3
+ Implementação de <function>array_values</function> para PHP 3
users
</title>
<programlisting role="php">
@@ -52,7 +64,7 @@
</para>
</note>
<para>
- Veja também <function>array_keys</function>.
+ Veja também <function>array_keys</function>.
</para>
</refsect1>
</refentry>