mirror of
https://github.com/php/doc-pl.git
synced 2026-03-29 18:42:06 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@179168 c90b9560-bf6c-de11-be94-00142212c4b1
78 lines
2.3 KiB
XML
78 lines
2.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-2"?>
|
|
<!-- EN-Revision: 1.11 Maintainer: leszek Status: ready -->
|
|
<!-- $Revision: 1.6 $ -->
|
|
<refentry id="function.array-change-key-case">
|
|
<refnamediv>
|
|
<refname>array_change_key_case</refname>
|
|
<refpurpose>
|
|
Zwraca tablicê ze wszystkimi kluczami tekstowymi zamienionymi na
|
|
wy³±cznie ma³e lub wy³±cznie du¿e litery
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Opis</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>array_change_key_case</methodname>
|
|
<methodparam><type>array</type><parameter>wej¶cie</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>wielko¶æ</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>array_change_key_case</function> zmienia klucze w tablicy
|
|
<parameter>wej¶cie</parameter> aby by³y pisane tylko du¿ymi lub tylko
|
|
ma³ymi literami. Zmiana zale¿y od ostatniego opcjonalnego parametru
|
|
<parameter>case</parameter>. Mo¿na do niego przekazaæ jedn± z dwóch
|
|
sta³ych: <constant>CASE_UPPER</constant> lub
|
|
<constant>CASE_LOWER</constant>. Domy¶ln± warto¶ci± jest
|
|
<constant>CASE_LOWER</constant>. Indeksy liczbowe bêd± pozostawione takie
|
|
jakie s±.
|
|
</para>
|
|
<example>
|
|
<title>Przyk³ad u¿ycia <function>array_change_key_case</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$wejscie = array("PierWszy" => 1, "DruGi" => 4);
|
|
print_r(array_change_key_case($wejscie, CASE_UPPER));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[PIERWSZY] => 1
|
|
[DRUGI] => 2
|
|
)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
<para>
|
|
Je¶li tablica ma indeksy które bêd± siê powtarza³y po wykonaniu tej
|
|
funkcji (np. "klucZ" i "kLUCZ"), warto¶æ tego elementu który jest dalej w
|
|
tablicy nadpisze pozosta³e indeksy.
|
|
</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 encoding=iso-8859-2
|
|
vi: ts=1 sw=1
|
|
-->
|