1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-26 16:22:10 +01:00
Files
archived-doc-de/reference/array/functions/array-change-key-case.xml
Thomas Schoefbeck 3a26d52632 sync to en
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@111408 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-11 09:48:08 +00:00

71 lines
2.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- EN-Revision: 1.6 Maintainer: tom Status: ready -->
<refentry id="function.array-change-key-case">
<refnamediv>
<refname>array_change_key_case</refname>
<refpurpose>
Liefert ein Array mit allen String-Schlüsseln in Klein- oder Großbuchstaben
</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<methodsynopsis>
<type>array</type><methodname>array_change_key_case</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>case</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_change_key_case</function> wandelt die Schlüssel des
Arrays <parameter>input</parameter> in Klein- bzw. Großbuchstaben um.
Die Richtung der Umwandlung wird mit dem optionalen Parameter
<parameter>case</parameter> festgelegt, mit dem die zwei Konstanten
<constant>CASE_UPPER</constant> und <constant>CASE_LOWER</constant>
übergeben werden können. Default ist <constant>CASE_LOWER</constant>.
Diese Funktion lässt die numerischen Indizes unverändert.
</para>
<example>
<title><function>array_change_key_case</function></title>
<programlisting role="php">
<![CDATA[
$input_array = array("FirSt" => 1, "SecOnd" => 4);
print_r(array_change_key_case($input_array, CASE_UPPER));
]]>
</programlisting>
<para>
wird folgendes ausgeben:
<screen>
<![CDATA[
Array
(
[FIRST] => 1
[SECOND] => 2
)
]]>
</screen>
</para>
</example>
</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
-->