com doc/es: Fix #80314: [ES] current function in Spanish documentation: reference/array/functions/current.xml
| From: | Julio Napurí Carlos | Date: | Wed, 03 Feb 2021 18:10:55 +0000 |
| Subject: | com doc/es: Fix #80314: [ES] current function in Spanish documentation: reference/array/functions/current.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-11019@lists.php.net to get a copy of this message | ||
Commit: 054c3e35c1f7a829c6aec676925ea5ae95d14ffc
Author: Julio Napurí <julionc@php.net> Wed, 3 Feb 2021 13:03:32 -0500
Parents: e67cba4c3b258e0e56e6c6a9de730e40c86949a5
Branches: master
Link: http://git.php.net/?p=doc/es.git;a=commitdiff;h=054c3e35c1f7a829c6aec676925ea5ae95d14ffc
Log:
Fix #80314: [ES] current function in Spanish documentation
Bugs:
https://bugs.php.net/80314
Changed paths:
M reference/array/functions/current.xml
Diff:
diff --git a/reference/array/functions/current.xml b/reference/array/functions/current.xml
index e63a23eb6e..e3f7964f57 100644
--- a/reference/array/functions/current.xml
+++ b/reference/array/functions/current.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 89a73e348c5d4bdd0300996566c672035745e2b0 Maintainer: yago Status: ready -->
+<!-- EN-Revision: cd943f94a013b74df8765ab8e1a620a916a64a85 Maintainer: yago Status: ready -->
+<!-- Reviewed: yes Maintainer: julionc -->
<refentry xml:id="function.current" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>current</refname>
@@ -10,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>current</methodname>
- <methodparam><type>array</type><parameter
role="reference">array</parameter></methodparam>
+ <methodparam><type
class="union"><type>array</type><type>object</type></type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
Cada array tiene un puntero interno a su elemento "actual",
@@ -37,13 +38,38 @@
&reftitle.returnvalues;
<para>
La función <function>current</function> simplemente devuelve el
- valor del elemento del array que está siendo apuntado por el
- puntero interno. No desplaza el puntero de ninguna manera. Si el
+ valor del elemento del array que está siendo apuntado por el
+ puntero interno. No desplaza el puntero de ninguna manera. Si el
puntero interno apunta más allá del final de la lista de elementos o el array
está vacío, <function>current</function> devolverá &false;.
</para>
&return.falseproblem;
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.0.0</entry>
+ <entry>
+ <parameter>array</parameter> ahora siempre se pasa por el valor.
+ Antes de esta versión, se pasaba por referencia si era posible,
+ y por el valor de lo contrario.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -75,10 +101,19 @@ var_dump(current($arr)); // array(0) { }
&reftitle.notes;
<note>
<simpara>
- No hay manera de distinguir el inicio de un array de un elemento
- de tipo &false; <type>boolean</type>. Para recorrer adecuadamente
- que puede contener elementos &false; ver la función
- <function>each</function>.
+ The results of calling <function>current</function> on an empty array
+ and on an array, whose internal pointer points beyond the end of the elements,
+ are indistinguishable from a <type>bool</type> &false; element.
+ To properly traverse an array which may contain &false; elements, see the
+ <function>foreach</function> function.
+ </simpara>
+ <simpara>
+ Los resultados al llamar <function>current</function> en un array vacío
+ y en un array, cuyo puntero interno apunta más allá del final de los elementos,
+ son indistinguibles de un elemento de tipo <type>bool</type> &false;.
+ Para recorrer adecuadamente un array que puede contener elementos &false;,
+ ver la función <function>foreach</function>.
+ </simpara>
</simpara>
</note>
</refsect1>
@@ -96,7 +131,6 @@ var_dump(current($arr)); // array(0) { }
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml