mirror of
https://github.com/php/doc-de.git
synced 2026-03-24 15:22:14 +01:00
fixed svn properties git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@283886 c90b9560-bf6c-de11-be94-00142212c4b1
87 lines
2.7 KiB
XML
87 lines
2.7 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: n/a Maintainer: nobody 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 role="description">
|
|
&reftitle.description;
|
|
<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
|
|
-->
|