cvs: phpdoc-pl /reference/array/functions array-uintersect-assoc.xml
| From: | Leszek Krupinski | Date: | Wed, 09 Mar 2005 01:11:54 +0000 |
| Subject: | cvs: phpdoc-pl /reference/array/functions array-uintersect-assoc.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-554@lists.php.net to get a copy of this message | ||
leszek Tue Mar 8 20:11:54 2005 EDT
Added files:
/phpdoc-pl/reference/array/functions array-uintersect-assoc.xml
Log:
[leszek] - new file at rev 1.4
http://cvs.php.net/co.php/phpdoc-pl/reference/array/functions/array-uintersect-assoc.xml?r=1.1&p=1
Index: phpdoc-pl/reference/array/functions/array-uintersect-assoc.xml
+++ phpdoc-pl/reference/array/functions/array-uintersect-assoc.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
<!-- $Revision: 1.1 $ -->
<refentry id="function.array-uintersect-assoc">
<refnamediv>
<refname>array_uintersect_assoc</refname>
<refpurpose>Oblicza przeciêcie tablic z dodatkowym sprawdzaniem indeksów, porównuj±c
dane przez funkcjê zwrotn±</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>array</type><methodname>array_uintersect_assoc</methodname>
<methodparam><type>array</type><parameter>tablica1</parameter></methodparam>
<methodparam><type>array</type><parameter>tablica2</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>
...</parameter></methodparam>
<methodparam><type>callback</type><parameter>funk_porównuj±ca</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_uintersect_assoc</function> zwraca tablicê zawieraj±c±
wszystkie warto¶ci z <parameter>tablica1</parameter> które wystêpuj± we
wszystkich pozosta³ych argumentach. Do porównywania, w przeciwieñstwie do
funkcji <function>array_uintersect</function>, u¿ywane s± klucze tablic.
Do porównywania danych u¿ywana jest funkcja zwrotna.
</para>
<para>
<example>
<title>Przyk³ad u¿ycia
<function>array_uintersect_assoc</function></title>
<programlisting role="php">
<![CDATA[
<?php
$tablica1 = array("a" => "zielony", "b" => "br±zowy",
"c" => "niebieski", "czerwony");
$tablica2 = array("a" => "ZIELONY", "B" => "br±zowy",
"¿ó³ty", "czerwony");
print_r(array_uintersect_assoc($tablica1, $tablica2, "strcasecmp"));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[a] => zielony
)
]]>
</screen>
</example>
</para>
<para>
Porównanie jest dokonywane przy pomocy podanej funkcji zwrotnej. Musi
ona zwracaæ liczbê ca³kowit± mniejsz±, równ± lub wiêksz± od zera je¶li
pierwszy klucz jest uznawany za mniejszy, równy lub wiêkszy drugiego.
</para>
<para>
Patrz tak¿e: <function>array_uintersect</function>,
<function>array_intersect_assoc</function>,
<function>array_intersect_uassoc</function> i
<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
-->