cvs: phpdoc-es / translation.xml /reference/array/functions array-intersect-uassoc.xml array-intersect-ukey.xml array-uintersect-assoc.xml
array-uintersect-uassoc.xml array-uintersect.xml

From: Date: Mon, 15 Nov 2004 19:08:21 +0000
Subject: cvs: phpdoc-es / translation.xml /reference/array/functions array-intersect-uassoc.xml array-intersect-ukey.xml array-uintersect-assoc.xml
array-uintersect-uassoc.xml array-uintersect.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-718@lists.php.net to get a copy of this message
baoengb Mon Nov 15 14:08:21 2004 EDT Added files: /phpdoc-es/reference/array/functions array-intersect-uassoc.xml array-intersect-ukey.xml array-uintersect-assoc.xml array-uintersect-uassoc.xml array-uintersect.xml Modified files: /phpdoc-es translation.xml Log: Por fin, array traducido... en busca de mas

http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.172&r2=1.173&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.172 phpdoc-es/translation.xml:1.173 --- phpdoc-es/translation.xml:1.172 Sun Sep 19 17:51:27 2004 +++ phpdoc-es/translation.xml Mon Nov 15 14:08:18 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.172 $ --> +<!-- $Revision: 1.173 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -99,17 +99,6 @@ <file name="reference/errorfunc/functions/user-error.xml" person="javi" type="review" date="01.12.2003"/> - <file name="reference/array/functions/array-intersect-uassoc.xml" - person="baoengb" type="translation" date="16.08.2004" /> - <file name="reference/array/functions/array-intersect-ukey.xml" - person="baoengb" type="translation" date="16.08.2004" /> - <file name="reference/array/functions/array-uintersect-assoc.xml" - person="baoengb" type="translation" date="16.08.2004" /> - <file name="reference/array/functions/array-uintersect-uassoc.xml" - person="baoengb" type="translation" date="16.08.2004" /> - <file name="reference/array/functions/array-uintersect.xml" - person="baoengb" type="translation" date="16.08.2004" /> - <file name="appendices/migration5.xml" person="lboshell" type="translation" date="24.08.2004" /> <file name="faq/migration5.xml" person="lboshell" http://cvs.php.net/co.php/phpdoc-es/reference/array/functions/array-intersect-uassoc.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect-uassoc.xml +++ phpdoc-es/reference/array/functions/array-intersect-uassoc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> <refentry id="function.array-intersect-uassoc"> <refnamediv> <refname>array_intersect_uassoc</refname> <refpurpose>Calcula la intersecci&oacute;n de matrices con chequeo de &iacute;ndices adicional por una funci&oacute;n de usuario</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>array</type><methodname>array_intersect_uassoc</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> <methodparam><type>callback</type><parameter>key_compare_func</parameter></methodparam> </methodsynopsis> <para> <function>array_intersect_uassoc</function> Regresa una matriz conteniendo todos los valores de <parameter>array1</parameter> que est&aacute;n presentes en todos los argumentos. Note que los &iacute;ndices son usados en la comparaci&oacute;n a diferencia de <function>array_intersect</function>. </para> <para> La comparaci&oacute;n de &iacute;ndices es hecha por una funci&oacute;n de usuario. Esta debe regresar un entero menor que, igual a, o mayor que cero si el primer argumento es considerado ser menor que, igual a o mayor que el segundo, respectivamente. </para> <para> <example> <title>Ejemplo de <function>array_intersect_uassoc</function></title> <programlisting role="php"> <![CDATA[ <?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); print_r(array_intersect_uassoc($array1, $array2, "strcasecmp")); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [b] => brown ) ]]> </screen> </example> </para> <para> Vea tambi&eacute;n: <function>array_intersect</function>, <function>array_intersect_assoc</function>, <function>array_uintersect_assoc</function>, <function>array_uintersect_uassoc</function>, <function>array_intersect_key</function> y <function>array_intersect_ukey</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-intersect-ukey.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-intersect-ukey.xml +++ phpdoc-es/reference/array/functions/array-intersect-ukey.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: baoengb Status: ready --> <refentry id="function.array-intersect-ukey"> <refnamediv> <refname>array_intersect_ukey</refname> <refpurpose>Calcula la intersecci&oacuten; de matrices usando una funci&oacute;n de usuario para la comparaci&oacute;n de los &iacute;ndices</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>array</type><methodname>array_intersect_ukey</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> <methodparam><type>callback</type><parameter>key_compare_func</parameter></methodparam> </methodsynopsis> <para> <function>array_intersect_ukey</function> regresa una matriz que contiene todos los valores de <parameter>array1</parameter> los cuales tienen &iacute;ndices que est&aacute;n presentes en todos los argumentos. </para> <para> Esta comparaci&oacute;n es hecha por una funci&oacute;n del usuario. La cual debe regresar un entero menor que, igual a, o mayor que cero si el primer &iacute;ndice es considerado ser menor que, igual a o mayor que el segundo, respectivamente. </para> <para> <example> <title>Ejemplo <function>array_intersect_ukey</function></title> <programlisting role="php"> <![CDATA[ <?php function key_compare_func($key1, $key2) { if ($key1 == $key2) return 0; else if ($key1 > $key2) return 1; else return -1; } $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4); $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8); var_dump(array_intersect_ukey($array1, $array2, 'key_compare_func')); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ array(2) { ["blue"]=> int(1) ["green"]=> int(3) }) ]]> </screen> </example> </para> <para> En nuestro ejemplo ve que solo los &iacute;ndices <literal>'blue'</literal> y <literal>'green'</literal> est&aacute;n presentes en ambas matrices y por lo tanto son regresados. Tambi&eacute;n note los valores de los &iacute;ndices <literal>'blue'</literal> y <literal>'green'</literal> son diferentes entre las dos matrices. A&uacute;n as&iacute; coinciden porque solo los &iacute;ndices son checados. Los valores regresados son los de <parameter>array1</parameter>. </para> <para> Los dos &iacute;ndices del par <literal>key =&gt; value</literal> son considerados igual solo si <literal>(string) $key1 === (string) $key2 </literal>. En otras palabras se hace un chequeo estricto de tipo, de tal manera que la representaci&oacute;n de la cadena sea la misma. </para> <para> Vea tambi&eacute;n: <function>array_diff</function>, <function>array_udiff</function> <function>array_diff_assoc</function>, <function>array_diff_uassoc</function>, <function>array_udiff_assoc</function>, <function>array_udiff_uassoc</function>, <function>array_diff_key</function>, <function>array_diff_ukey</function>, <function>array_intersect</function>, <function>array_intersect_assoc</function>, <function>array_intersect_uassoc</function> y <function>array_intersect_key</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-uintersect-assoc.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-uintersect-assoc.xml +++ phpdoc-es/reference/array/functions/array-uintersect-assoc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> <refentry id="function.array-uintersect-assoc"> <refnamediv> <refname>array_uintersect_assoc</refname> <refpurpose>Calcula la intersecci&oacute;n de matrices con chequeo adicional de &iacute;dices, comparando los datos por una funci&oacute;n del usuario</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>array</type><methodname>array_uintersect_assoc</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> <methodparam><type>callback</type><parameter>data_compare_func</parameter></methodparam> </methodsynopsis> <para> <function>array_uintersect_assoc</function> regresa una matriz conteniendo todos los valores de <parameter>array1</parameter> que est&aacute;n presentes en todos los argumentos. Note que los &iacute;ndices son usados en la comparaci&oacute;n a diferencia de <function>array_uintersect</function>. Los datos son comparados usando una funci&oacute;n del usuario. </para> <para> <example> <title>Ejemplo <function>array_uintersect_assoc</function></title> <programlisting role="php"> <![CDATA[ <?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); print_r(array_uintersect_assoc($array1, $array2, "strcasecmp")); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [a] => green ) ]]> </screen> </example> </para> <para> Para la comparaci&oacute;n es usada la funci&oacute;n dada por el usuario. La cual debe regresar un entero menor que, igual a, o mayor que cero si el primer argumento es considerado ser, respectivamente, menor que, igual a, o mayor que el segundo argumento. </para> <para> Vea tambi&eacute;n <function>array_uintersect</function>, <function>array_intersect_assoc</function>, <function>array_intersect_uassoc</function> y <function>array_uintersect_uassoc</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-uintersect-uassoc.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-uintersect-uassoc.xml +++ phpdoc-es/reference/array/functions/array-uintersect-uassoc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> <refentry id="function.array-uintersect-uassoc"> <refnamediv> <refname>array_uintersect_uassoc</refname> <refpurpose>Calcula la intersecci&oacute;n de matrices con chequeo adicional de &iacute;ndices, compara los datos y los &iacute;ndices por una funci&oacute;n del usuario </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>array</type><methodname>array_uintersect_uassoc</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> <methodparam><type>callback</type><parameter>data_compare_func</parameter></methodparam> <methodparam><type>callback</type><parameter>key_compare_func</parameter></methodparam> </methodsynopsis> <para> <function>array_uintersect_uassoc</function> regresa una matriz que contiene todos los valores de <parameter>array1</parameter> que est&aacute;n presentes en todos los argumentos. Note que los &iacute;ndices son usados en la comparaci&oacute;n a diferencia de <function>array_uintersect</function>. Los datos y los &iacute;ndices son comparados usando una funci&oacute;n del usuario. </para> <para> <example> <title>Ejemplo <function>array_uintersect_uassoc</function></title> <programlisting role="php"> <![CDATA[ <?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); print_r(array_uintersect_uassoc($array1, $array2, "strcasecmp", "strcasecmp")); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [a] => green [b] => brown ) ]]> </screen> </example> </para> <para> Para la comparaci&oacute;n es usada una funci&oacute;n dada por el usuario. La cual debe regresar un entero menor que, igual a, o mayor que cero si el primer argumento es considerado ser menor que, igual a o mayor que el segundo argumento respectivamente. </para> <para> Vea tambi&eacute;n <function>array_uintersect</function>, <function>array_intersect_assoc</function>, <function>array_intersect_uassoc</function> y <function>array_uintersect_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-uintersect.xml?r=1.1&p=1 Index: phpdoc-es/reference/array/functions/array-uintersect.xml +++ phpdoc-es/reference/array/functions/array-uintersect.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> <refentry id="function.array-uintersect"> <refnamediv> <refname>array_uintersect</refname> <refpurpose>Calcula la intersecc&oacute;n de matrices, compara los datos con una funci&oacute;n del usuario</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>array</type><methodname>array_uintersect</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> <methodparam><type>callback</type><parameter>data_compare_func</parameter></methodparam> </methodsynopsis> <para> <function>array_uintersect</function> regresa una matriz que contiene todos los valores de <parameter>array1</parameter> que est&aacute;n presentes en topos los argumentos. Los datos son comparados usando una funci&oacute;n del usuario. </para> <para> <example> <title>Ejemplo <function>array_uintersect</function></title> <programlisting role="php"> <![CDATA[ <?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); print_r(array_uintersect($array1, $array2, "strcasecmp")); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [a] => green [b] => brown [0] => red ) ]]> </screen> </example> </para> <para> Para la comparaci&oacute; es usada una funci&oacute;n del usuario. La cual debe regresar un entero menor que, igual a, o mayor que cerp si el primer argumento es considerado ser menor que, igual a, o mayor que el segundo argumento, respectivamente. </para> <para> Vea tambi&eacute;n <function>array_intersect</function>, <function>array_uintersect_assoc</function>, <function>array_intersect_uassoc</function> y <function>array_uintersect_uassoc</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 -->
« previous php.doc.es (#718) next »