mirror of
https://github.com/php/doc-es.git
synced 2026-03-25 16:02:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@172730 c90b9560-bf6c-de11-be94-00142212c4b1
90 lines
3.0 KiB
XML
90 lines
3.0 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-uintersect-uassoc">
|
|
<refnamediv>
|
|
<refname>array_uintersect_uassoc</refname>
|
|
<refpurpose>Calcula la intersección de matrices con chequeo adicional
|
|
de índices, compara los datos y los índices por una función
|
|
del usuario
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descripció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án
|
|
presentes en todos los argumentos. Note que los índices son
|
|
usados en la comparación a diferencia de
|
|
<function>array_uintersect</function>. Los datos y los índices
|
|
son comparados usando una funció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ón es usada una funció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é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
|
|
-->
|