1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-29 10:42:12 +02:00
Files
archived-doc-de/reference/array/functions/rsort.xml
Oliver Albers a25c3bb452 Sync to en, credits to tom
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@198701 c90b9560-bf6c-de11-be94-00142212c4b1
2005-10-18 13:19:44 +00:00

90 lines
2.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- EN-Revision: 1.13 Maintainer: simp Status: ready -->
<!-- CREDITS: tom -->
<refentry id="function.rsort">
<refnamediv>
<refname>rsort</refname>
<refpurpose>
Sortiert ein Array in umgekehrter Reihenfolge
</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<methodsynopsis>
<type>bool</type><methodname>rsort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
</methodsynopsis>
<para>
Diese Funktion sortiert ein Array in umgekehrter Reihenfolge (vom
höchsten zum niedrigsten Wert).
</para>
&note.no-key-association;
<para>
&return.success;
</para>
<para>
<example>
<title><function>rsort</function></title>
<programlisting role="php">
<![CDATA[
<?php
$fruits = array("Zitrone", "Orange", "Banane", "Apfel");
rsort($fruits);
foreach ($fruits as $key => $val) {
echo "$key = $val\n";
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
0 = Zitrone
1 = Orange
2 = Banane
3 = Apfel
]]>
</screen>
</example>
</para>
<para>
Die Früchte wurden in umgekehrter alphabetischer Reihenfolge
sortiert.
</para>
<para>
Sie können das Verhalten der Sortierung mittels dem optionalen
Parameter <parameter>sort_flags</parameter> beeinflussen, für
Details siehe <function>sort</function>.
</para>
<para>
Siehe auch <function>arsort</function>,
<function>asort</function>, <function>ksort</function>,
<function>krsort</function>,
<function>sort</function> und <function>usort</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
-->