1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-31 19:52:21 +02:00
Files
archived-doc-de/reference/array/functions/array-intersect-uassoc.xml
Hannes Magnusson 97d53b218c Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there
 - Bump EN-Revision where appropriate


git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@238322 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-23 13:21:53 +00:00

87 lines
2.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- EN-Revision: 1.5 Maintainer: simp Status: ready -->
<refentry xml:id="function.array-intersect-uassoc" xmlns="http://docbook.org/ns/docbook">
<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
-->