1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-25 07:52:21 +01:00
Files
archived-doc-es/reference/array/functions/array-intersect-uassoc.xml
Enrique Garcia Briones e382fab32a Por fin, array traducido... en busca de mas
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@172730 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-15 19:08:20 +00:00

87 lines
2.8 KiB
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
-->