1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-29 18:42:06 +02:00
Files
archived-doc-pl/reference/array/functions/array-combine.xml
Leszek Krupinski aeff4780ce [leszek] - fix
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@180729 c90b9560-bf6c-de11-be94-00142212c4b1
2005-02-25 01:04:11 +00:00

83 lines
2.1 KiB
XML
Executable File

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.6 Maintainer: leszek Status: ready -->
<!-- $Revision: 1.1 $ -->
<refentry id="function.array-combine">
<refnamediv>
<refname>array_combine</refname>
<refpurpose>
Tworzy tablicê u¿ywaj±c warto¶ci jednej tablicy jako kluczy a drugiej
jako warto¶ci
</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>array</type><methodname>array_combine</methodname>
<methodparam><type>array</type><parameter>klucze</parameter></methodparam>
<methodparam><type>array</type><parameter>warto¶ci</parameter></methodparam>
</methodsynopsis>
<para>
Zwraca tablicê stworzon± poprzez u¿ycie warto¶ci z tablicy
<parameter>klucze</parameter> jako kluczy i warto¶ci z tablicy
<parameter>warto¶ci</parameter> jako odpowiadaj±cych im warto¶ci.
</para>
<para>
Zwraca &false; je¶li liczba elementów tablic wej¶ciowych nie s± równe,
lub je¶li jedna lub obie z tablic s± puste.
</para>
<para>
<example>
<title>Przyk³ad u¿ycia <function>array_combine</function></title>
<programlisting role="php">
<![CDATA[
<?php
$a = array('zielony', 'czerwony', '¿ó³ty');
$b = array('awokado', 'jab³ko', 'banan');
$c = array_combine($a, $b);
print_r($c);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[zielony] => awokado
[czerwony] => jab³ko
[¿ó³ty] => banan
)
]]>
</screen>
</example>
</para>
<para>
Patrz tak¿e: <function>array_merge</function>,
<function>array_walk</function> i
<function>array_values</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
-->