cvs: phpdoc-hu /reference/array/functions krsort.xml

From: Date: Mon, 09 Aug 2004 12:25:15 +0000
Subject: cvs: phpdoc-hu /reference/array/functions krsort.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-975@lists.php.net to get a copy of this message
cece Mon Aug 9 08:25:15 2004 EDT Modified files: /phpdoc-hu/reference/array/functions krsort.xml Log: sync http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/krsort.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-hu/reference/array/functions/krsort.xml diff -u phpdoc-hu/reference/array/functions/krsort.xml:1.3 phpdoc-hu/reference/array/functions/krsort.xml:1.4 --- phpdoc-hu/reference/array/functions/krsort.xml:1.3 Wed Aug 14 12:56:19 2002 +++ phpdoc-hu/reference/array/functions/krsort.xml Mon Aug 9 08:25:14 2004 @@ -1,42 +1,44 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 --> -<!-- last change to 'krsort' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready --> -<!-- OLD-Revision: 1.173/EN.1.2 --> +<!-- EN-Revision: 1.9 Maintainer: cece Status: ready --> +<!-- CREDITS: gerzson --> <refentry id="function.krsort"> <refnamediv> <refname>krsort</refname> - <refpurpose>kulcsok alapján fordított sorrendbe rendez egy tömböt</refpurpose> + <refpurpose>Kulcsok alapján fordított sorrendbe rendez egy tömböt</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> <methodsynopsis> - <type>int</type><methodname>krsort</methodname> - <methodparam><type>array</type><parameter>array</parameter></methodparam> + <type>bool</type><methodname>krsort</methodname> + <methodparam><type>array</type><parameter>&amp;array</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> </methodsynopsis> <para> Ez a függvény úgy rendezi az <parameter>array</parameter> tömböt a kulcsai alapján, hogy az indexek megtartják kapcsolatukat a hozzájuk rendelt tömb elemeivel. Fõként asszociatív tömbök rendezéséhez használatos. + </para> + <para> + &return.success; + </para> + <para> <example> - <title><function>krsort</function> példa</title> + <title><function>krsort</function> példa</title> <programlisting role="php"> <![CDATA[ +<?php $gyumolcsok = array ("d"=>"citrom", "a"=>"narancs", "b"=>"banán", "c"=>"alma"); -krsort ($gyumolcsok); - reset ($gyumolcsok); -while (list ($key, $val) = each ($gyumolcsok)) { +krsort($gyumolcsok); +reset($gyumolcsok); +while (list($key, $val) = each($gyumolcsok)) { echo "$key = $val\n"; } +?> ]]> </programlisting> - </example> - </para> - <para> - Ez a példa a következõt írja ki: - </para> - <para> + + &example.outputs; + <screen> <![CDATA[ d = citrom @@ -44,7 +46,8 @@ b = banán a = narancs ]]> - </screen> + </screen> + </example> </para> <para> A rendezést befolyásolja a <parameter>sort_flags</parameter> paraméter,

« previous php.doc.hu (#975) next »