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-uintersect.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.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- EN-Revision: 1.6 Maintainer: simp Status: ready -->
<refentry xml:id="function.array-uintersect" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_uintersect</refname>
<refpurpose>
Ermittelt die Schnittmenge von Arrays, vergleicht Daten mittels einer Callbackfunktion
</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<methodsynopsis>
<type>array</type><methodname>array_uintersect</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>
</methodsynopsis>
<para>
<function>array_uintersect</function> gibt ein Array mit allen
Werten aus <parameter>array1</parameter> zurück, die ebenfalls
in allen anderen Argumenten enthalten sind.
Die Daten werden durch eine Callbackfunktion verglichen.
</para>
<para>
<example>
<title><function>array_uintersect</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_uintersect($array1, $array2, "strcasecmp"));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[a] => grün
[b] => braun
[0] => rot
)
]]>
</screen>
</example>
</para>
<para>
Für den Vergleich der Daten wird die angegebene Callbackfunktion
herangezogen. 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>
Siehe auch <function>array_intersect</function>,
<function>array_uintersect_assoc</function>,
<function>array_intersect_uassoc</function> und
<function>array_uintersect_uassoc</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
-->