cvs: phpdoc-pt_BR /reference/array/functions array-pop.xml

From: Date: Thu, 05 Sep 2002 21:51:52 +0000
Subject: cvs: phpdoc-pt_BR /reference/array/functions array-pop.xml
Groups: php.doc.pt-br 
Request: Send a blank email to doc-pt-br+get-121@lists.php.net to get a copy of this message
lucasr Thu Sep 5 17:51:52 2002 EDT Modified files: /phpdoc-pt_BR/reference/array/functions array-pop.xml Log: Making this file up-to-date Index: phpdoc-pt_BR/reference/array/functions/array-pop.xml diff -u phpdoc-pt_BR/reference/array/functions/array-pop.xml:1.2 phpdoc-pt_BR/reference/array/functions/array-pop.xml:1.3 --- phpdoc-pt_BR/reference/array/functions/array-pop.xml:1.2 Sat Apr 20 02:15:59 2002 +++ phpdoc-pt_BR/reference/array/functions/array-pop.xml Thu Sep 5 17:51:52 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-pop' in en/ tree in rev 1.2 --> <refentry id="function.array-pop"> @@ -8,17 +8,17 @@ <refpurpose>Retira um elemento do final do array</refpurpose> </refnamediv> <refsect1> - <title>Descri&ccedil;&atilde;o</title> + <title>Descrição</title> <methodsynopsis> <type>mixed</type><methodname>array_pop</methodname> <methodparam><type>array</type><parameter>array</parameter></methodparam> </methodsynopsis> <para> - <function>array_pop</function> retira e retorna o &uacute;ltimo - valor de <parameter>array</parameter>, diminuindo-o + <function>array_pop</function> retira e retorna o último + elemento de <parameter>array</parameter>, diminuindo <parameter>array</parameter> em um elemento. - Se <parameter>array</parameter> estiver vazio (ou se n&atilde;o for um array), - o valor &null; &eacute; retornado. + Se <parameter>array</parameter> estiver vazio (ou se não for um array), + o valor &null; é retornado. </para> <para> <example> @@ -29,15 +29,25 @@ $fruta = array_pop ($cesta); ]]> </programlisting> + <para> + Depois disso, <varname>$cesta</varname> terá 2 elementos: + <screen role="php"> +<![CDATA[ +Array +( + [0] => laranja + [1] => melancia +) +]]> + </screen> + e <literal>morango</literal> será passado para + <varname>$fruta</varname>. + </para> </example> </para> + &return.falseproblem; <para> - Depois disso, <varname>$cesta</varname> ter&aacute; dois elementos: - "laranja" e "melancia", and <varname>$fruta</varname> ter&aacute; - "morango". - </para> - <para> - Veja tamb&eacute;m <function>array_push</function>, + Veja também <function>array_push</function>, <function>array_shift</function>, e <function>array_unshift</function>. </para>

« previous php.doc.pt-br (#121) next »