1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-26 00:02:18 +01:00
Files
archived-doc-de/reference/array/functions/natcasesort.xml
Nilgün Belma Bugüner fd2f75e1a8 changed EN-Revision tag as cvs2svn
fixed svn properties

git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@283886 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 22:21:12 +00:00

110 lines
2.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
<!-- CREDITS: tom -->
<refentry xml:id="function.natcasesort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>natcasesort</refname>
<refpurpose>Sortiert ein Array in "natürlicher Reihenfolge",
Groß/Kleinschreibung wird ignoriert</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>natcasesort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
Diese Funktion implementiert einen Sortieralgorithmus, welcher
alphanumerische Zeichenketten reiht, wie es auch ein Mensch tun
würde, wobei Sie die Schlüssel-Wert-Zuordnung beibehält.
Das wird als "natürliche Reihenfolge" bezeichnet.
</para>
<para>
&return.success;
</para>
<para>
<function>natcasesort</function> ist eine Groß-/kleinschreibung
ignorierende Version von <function>natsort</function>.
</para>
<para>
<example>
<title><function>natcasesort</function> Beispiel</title>
<programlisting role="php">
<![CDATA[
<?php
$array1 = $array2 = array('IMG0.png', 'img12.png', 'img10.png', 'img2.png', 'img1.png', 'IMG3.png');
sort($array1);
echo "Standard Reihenfolge\n";
print_r($array1);
natcasesort($array2);
echo "\nNatürliche Reihenfolge (Groß-/Kleinschreibung ignorierend)\n";
print_r($array2);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Standard Reihenfolge
Array
(
[0] => IMG0.png
[1] => IMG3.png
[2] => img1.png
[3] => img10.png
[4] => img12.png
[5] => img2.png
)
Natürliche Reihenfolge (Groß-/Kleinschreibung ignorierend)
Array
(
[0] => IMG0.png
[4] => img1.png
[3] => img2.png
[5] => IMG3.png
[2] => img10.png
[1] => img12.png
)
]]>
</screen>
<para>
Detailliertere Informationen finden Sie auf Martin Pool's <link
xlink:href="&url.strnatcmp;">Natural Order String Comparison</link>
Seite.
</para>
</example>
</para>
<para>
Siehe auch <function>sort</function>,
<function>natsort</function>,
<function>strnatcmp</function> und
<function>strnatcasecmp</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
-->