cvs: phpdoc-es /reference/array/functions array-intersect-assoc.xml array-intersect.xml array-product.xml
| From: | Gustavo Narea | Date: | Tue, 06 Sep 2005 17:34:20 +0000 |
| Subject: | cvs: phpdoc-es /reference/array/functions array-intersect-assoc.xml array-intersect.xml array-product.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-1264@lists.php.net to get a copy of this message | ||
gustavo Tue Sep 6 13:34:20 2005 EDT
Added files:
/phpdoc-es/reference/array/functions array-intersect-assoc.xml
array-intersect.xml
array-product.xml
Log:
Agregando archivos traducidos
http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-intersect-assoc.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect-assoc.xml +++ phpdoc-es/reference/array/functions/array-intersect-assoc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.8 Maintainer: gustavo Status: ready --> <refentry id="function.array-intersect-assoc"> <refnamediv> <refname>array_intersect_assoc</refname> <refpurpose>Calcula la intersección de matrices verificando que también coincidan los índices</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>array_intersect_assoc</methodname> <methodparam><type>array</type><parameter>matriz1</parameter></methodparam> <methodparam><type>array</type><parameter>matriz2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> </methodsynopsis> <simpara> <function>array_intersect_assoc</function> devuelve una matriz que contiene todos los valores de la <parameter>matriz1</parameter> que están presentes en todos los argumentos. Nótese que las claves son consideradas en la comparación, a diferencia de <function>array_intersect</function>. </simpara> <para> <example> <title>Ejemplo de <function>array_intersect_assoc</function></title> <programlisting role="php"> <![CDATA[ <?php $matriz1 = array("a" => "verde", "b" => "marron", "c" => "azul", "rojo"); $matriz2 = array("a" => "verde", "amarillo", "rojo"); $matriz_resultante = array_intersect_assoc($matriz1, $matriz2); ?> ]]> </programlisting> <para> $matriz_resultante luciría como: </para> <screen> <![CDATA[ Array ( [a] => verde ) ]]> </screen> </example> </para> <simpara> En nuestro ejemplo usted ve que sólo el par <literal>"a" => "verde"</literal> está presente en ambas matrices, y por lo tanto es devuelto. El valor <literal>"rojo"</literal> no es devuelto porque en <varname>$matriz1</varname> su clave es <literal>0</literal> mientras que la clave de "rojo" en <varname>$matriz2</varname> es <literal>1</literal>. </simpara> <simpara> Los dos valores de los pares <literal>clave => valor</literal> son considerados iguales sólo si <literal>(string) $elem1 === (string) $elem2 </literal>. En otras palabras, se lleva a cabo una estricta verificación del tipo de manera que la representación de la cadena debe ser la misma. <!-- TODO: example of it... --> </simpara> <simpara> Véase también <function>array_intersect</function>, <function>array_uintersect_assoc</function>, <function>array_intersect_uassoc</function>, <function>array_uintersect_uassoc</function>, <function>array_diff</function> and <function>array_diff_assoc</function>. </simpara> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-intersect.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect.xml +++ phpdoc-es/reference/array/functions/array-intersect.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.10 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-intersect"> <refnamediv> <refname>array_intersect</refname> <refpurpose>Calcula la intersección de matrices</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>array_intersect</methodname> <methodparam><type>array</type><parameter>matriz1</parameter></methodparam> <methodparam><type>array</type><parameter>matriz2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> </methodsynopsis> <para> <function>array_intersect</function> devuelve una matriz que contiene todos los valores de <parameter>array1</parameter> que están presentes en todos los argumentos. Nótese que las claves son preservadas. </para> <para> <example> <title>Ejemplo de <function>array_intersect</function></title> <programlisting role="php"> <![CDATA[ <?php $matriz1 = array("a" => "verde", "rojo", "azul"); $matriz2 = array("b" => "verde", "amarillo", "rojo"); $resultado = array_intersect($matriz1, $matriz2); ?> ]]> </programlisting> <para> Esto hace que <varname>$resultado</varname> tenga </para> <screen role="php"> <![CDATA[ Array ( [a] => green [0] => red ) ]]> </screen> </example> </para> <note> <simpara> Dos elementos se consideran iguales si y sólo si <literal>(string) $elem1 === (string) $elem2</literal>. En palabras: cuando la representación de la cadena es la misma. <!-- TODO: example of it... --> </simpara> </note> <para> Véase también <function>array_intersect_assoc</function>, <function>array_diff</function>, y <function>array_diff_assoc</function>. </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-product.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-product.xml +++ phpdoc-es/reference/array/functions/array-product.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <refentry id="function.array-product"> <refnamediv> <refname>array_product</refname> <refpurpose> Calcula el producto de valores en una matriz </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>number</type><methodname>array_product</methodname> <methodparam><type>array</type><parameter>matriz</parameter></methodparam> </methodsynopsis> <para> <function>array_product</function> devuelve el producto de valores en una matriz como un entero o flotante. </para> <para> <example> <title>Ejemplos de <function>array_product</function></title> <programlisting role="php"> <![CDATA[ <?php $a = array(2, 4, 6, 8); echo "producto(a) = " . array_product($a) . "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ producto(a) = 384 ]]> </screen> </example> </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:"../../../../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 -->
http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-intersect-assoc.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect-assoc.xml +++ phpdoc-es/reference/array/functions/array-intersect-assoc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.8 Maintainer: gustavo Status: ready --> <refentry id="function.array-intersect-assoc"> <refnamediv> <refname>array_intersect_assoc</refname> <refpurpose>Calcula la intersección de matrices verificando que también coincidan los índices</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>array_intersect_assoc</methodname> <methodparam><type>array</type><parameter>matriz1</parameter></methodparam> <methodparam><type>array</type><parameter>matriz2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> </methodsynopsis> <simpara> <function>array_intersect_assoc</function> devuelve una matriz que contiene todos los valores de la <parameter>matriz1</parameter> que están presentes en todos los argumentos. Nótese que las claves son consideradas en la comparación, a diferencia de <function>array_intersect</function>. </simpara> <para> <example> <title>Ejemplo de <function>array_intersect_assoc</function></title> <programlisting role="php"> <![CDATA[ <?php $matriz1 = array("a" => "verde", "b" => "marron", "c" => "azul", "rojo"); $matriz2 = array("a" => "verde", "amarillo", "rojo"); $matriz_resultante = array_intersect_assoc($matriz1, $matriz2); ?> ]]> </programlisting> <para> $matriz_resultante luciría como: </para> <screen> <![CDATA[ Array ( [a] => verde ) ]]> </screen> </example> </para> <simpara> En nuestro ejemplo usted ve que sólo el par <literal>"a" => "verde"</literal> está presente en ambas matrices, y por lo tanto es devuelto. El valor <literal>"rojo"</literal> no es devuelto porque en <varname>$matriz1</varname> su clave es <literal>0</literal> mientras que la clave de "rojo" en <varname>$matriz2</varname> es <literal>1</literal>. </simpara> <simpara> Los dos valores de los pares <literal>clave => valor</literal> son considerados iguales sólo si <literal>(string) $elem1 === (string) $elem2 </literal>. En otras palabras, se lleva a cabo una estricta verificación del tipo de manera que la representación de la cadena debe ser la misma. <!-- TODO: example of it... --> </simpara> <simpara> Véase también <function>array_intersect</function>, <function>array_uintersect_assoc</function>, <function>array_intersect_uassoc</function>, <function>array_uintersect_uassoc</function>, <function>array_diff</function> and <function>array_diff_assoc</function>. </simpara> </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-intersect.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect.xml +++ phpdoc-es/reference/array/functions/array-intersect.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.10 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-intersect"> <refnamediv> <refname>array_intersect</refname> <refpurpose>Calcula la intersección de matrices</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>array_intersect</methodname> <methodparam><type>array</type><parameter>matriz1</parameter></methodparam> <methodparam><type>array</type><parameter>matriz2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> </methodsynopsis> <para> <function>array_intersect</function> devuelve una matriz que contiene todos los valores de <parameter>array1</parameter> que están presentes en todos los argumentos. Nótese que las claves son preservadas. </para> <para> <example> <title>Ejemplo de <function>array_intersect</function></title> <programlisting role="php"> <![CDATA[ <?php $matriz1 = array("a" => "verde", "rojo", "azul"); $matriz2 = array("b" => "verde", "amarillo", "rojo"); $resultado = array_intersect($matriz1, $matriz2); ?> ]]> </programlisting> <para> Esto hace que <varname>$resultado</varname> tenga </para> <screen role="php"> <![CDATA[ Array ( [a] => green [0] => red ) ]]> </screen> </example> </para> <note> <simpara> Dos elementos se consideran iguales si y sólo si <literal>(string) $elem1 === (string) $elem2</literal>. En palabras: cuando la representación de la cadena es la misma. <!-- TODO: example of it... --> </simpara> </note> <para> Véase también <function>array_intersect_assoc</function>, <function>array_diff</function>, y <function>array_diff_assoc</function>. </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:"../../../../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 --> http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-product.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-product.xml +++ phpdoc-es/reference/array/functions/array-product.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <refentry id="function.array-product"> <refnamediv> <refname>array_product</refname> <refpurpose> Calcula el producto de valores en una matriz </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>number</type><methodname>array_product</methodname> <methodparam><type>array</type><parameter>matriz</parameter></methodparam> </methodsynopsis> <para> <function>array_product</function> devuelve el producto de valores en una matriz como un entero o flotante. </para> <para> <example> <title>Ejemplos de <function>array_product</function></title> <programlisting role="php"> <![CDATA[ <?php $a = array(2, 4, 6, 8); echo "producto(a) = " . array_product($a) . "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ producto(a) = 384 ]]> </screen> </example> </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:"../../../../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 -->