1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-29 10:42:12 +02:00
Files
archived-doc-de/reference/array/functions/array-intersect-uassoc.xml
Carola 'Sammy' Kummert aec8810937 typo
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@196758 c90b9560-bf6c-de11-be94-00142212c4b1
2005-09-23 17:26:52 +00:00

88 lines
2.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- EN-Revision: 1.4 Maintainer: simp Status: ready -->
<refentry id="function.array-intersect-uassoc">
<refnamediv>
<refname>array_intersect_uassoc</refname>
<refpurpose>
Ermittelt die Schnittmenge von Arrays mit Indexprüfung; vergleicht Indizes mit einer Callbackfunktion
</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</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> gibt ein Array mit allen Werten
von <parameter>array1</parameter>, die auch in allen anderen Argumenten
enthalten sind, zurück. Beachten Sie, dass anders als von
<function>array_intersect</function> die Schlüssel zum Vergleich
herangezogen werden.
</para>
<para>
Der Indexvergleich wird von einer benutzerdefinierten Callbackfunktion
durchgeführt. Diese muss einen Integer kleiner als, genau gleich oder
größer als Null zurückgeben, wenn das erste Argument entsprechend als
kleiner, gleich oder größer als das Zweite betrachtet wird.
</para>
<para>
<example>
<title><function>array_intersect_uassoc</function> Beispiel</title>
<programlisting role="php">
<![CDATA[
<?php
$array1 = array("a" => "grün", "b" => "braun", "c" => "blau", "rot");
$array2 = array("a" => "GRÜN", "B" => "braun", "gelb", "rot");
print_r(array_intersect_uassoc($array1, $array2, "strcasecmp"));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[b] => braun
)
]]>
</screen>
</example>
</para>
<para>
Siehe auch <function>array_intersect</function>,
<function>array_intersect_assoc</function>,
<function>array_uintersect_assoc</function>,
<function>array_uintersect_uassoc</function>,
<function>array_intersect_key</function> und
<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
-->