Hi.
I'm from the Spanish translation team, but I don't have a CVS account
yet, that's why I send the files I translate to the [EMAIL PROTECTED]
mailing list.
Everytime I send them files they commit it on the same day, but this
time I sent 3 files the last Thursday and they haven't replied. I think
they're on vacations, therefore I'd like to know if some commiter of
this mailing list could upload the 3 files I attached to this email or
if I would have to wait until they're back?
By the way, I have a couple of months on this team and I'd like to know
if I already can request a CVS account?
To verify that I'm from the Spanish translation team, please visit:
http://doc.php.net/php/es/revcheck.php?p=translators
Best regards,
Gustavo Narea.
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- 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
-->
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- 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
-->
<?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
-->