cvs: phpdoc-hu /reference/array/functions arsort.xml
| From: | Cece) Szabolcs | Date: | Mon, 09 Aug 2004 11:25:49 +0000 |
| Subject: | cvs: phpdoc-hu /reference/array/functions arsort.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-973@lists.php.net to get a copy of this message | ||
cece Mon Aug 9 07:25:49 2004 EDT
Modified files:
/phpdoc-hu/reference/array/functions arsort.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/arsort.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/array/functions/arsort.xml
diff -u phpdoc-hu/reference/array/functions/arsort.xml:1.3
phpdoc-hu/reference/array/functions/arsort.xml:1.4
--- phpdoc-hu/reference/array/functions/arsort.xml:1.3 Wed Aug 14 12:56:19 2002
+++ phpdoc-hu/reference/array/functions/arsort.xml Mon Aug 9 07:25:49 2004
@@ -1,20 +1,18 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 -->
-<!-- last change to 'arsort' 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.arsort">
<refnamediv>
<refname>arsort</refname>
<refpurpose>
- fordított sorrendben rendez egy tömböt megtartva az indextársítást
+ Fordított sorrendben rendez egy tömböt megtartva az indextársítást
</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
- <type>void</type><methodname>arsort</methodname>
-
<methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <type>bool</type><methodname>arsort</methodname>
+
<methodparam><type>array</type><parameter>&array</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
</methodsynopsis>
<para>
@@ -23,29 +21,34 @@
Fõként akkor használják, ha az asszociatív tömbök rendezésénél
az aktuális elemsorrend is fontos.
</para>
+ <para>
+ &return.success;
+ </para>
<example>
<title><function>arsort</function> példa</title>
<programlisting role="php">
<![CDATA[
-$gyumolcsok = array ("d"=>"citrom", "a"=>"narancs",
"b"=>"banán", "c"=>"alma");
-arsort ($gyumolcsok);
- reset ($gyumolcsok);
-while (list ($key, $val) = each ($gyumolcsok)) {
+<?php
+$gyumolcsok = array("d" => "citrom", "a" =>
"narancs", "b" => "banán", "c" => "alma");
+arsort($gyumolcsok);
+reset($gyumolcsok);
+while (list($key, $val) = each($gyumolcsok)) {
echo "$key = $val\n";
}
+?>
]]>
</programlisting>
- <para>
- Ez a példa a következõt írja ki:
- <screen>
+
+ &example.outputs;
+
+ <screen>
<![CDATA[
a = narancs
d = citrom
b = banán
c = alma
]]>
- </screen>
- </para>
+ </screen>
</example>
<para>
A gyümölcsök az abc szerint fordított sorrendben vannak rendezve,
@@ -56,8 +59,11 @@
részletesebben lásd a <function>sort</function> függvénynél!
</para>
<para>
- Lásd még: <function>asort</function>, <function>rsort</function>,
- <function>ksort</function> és <function>sort</function>!
+ Lásd még:
+ <function>asort</function>,
+ <function>rsort</function>,
+ <function>ksort</function> és
+ <function>sort</function>.
</para>
</refsect1>
</refentry>