cvs: phpdoc-hu /reference/array/functions asort.xml
| From: | Cece) Szabolcs | Date: | Mon, 09 Aug 2004 11:31:12 +0000 |
| Subject: | cvs: phpdoc-hu /reference/array/functions asort.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-974@lists.php.net to get a copy of this message | ||
cece Mon Aug 9 07:31:12 2004 EDT
Modified files:
/phpdoc-hu/reference/array/functions asort.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/asort.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/array/functions/asort.xml
diff -u phpdoc-hu/reference/array/functions/asort.xml:1.3
phpdoc-hu/reference/array/functions/asort.xml:1.4
--- phpdoc-hu/reference/array/functions/asort.xml:1.3 Wed Aug 14 12:56:19 2002
+++ phpdoc-hu/reference/array/functions/asort.xml Mon Aug 9 07:31:11 2004
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 -->
-<!-- last change to 'asort' 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.asort">
<refnamediv>
<refname>asort</refname>
- <refpurpose>tömb elemeit rendezi megtartva az indextársítást</refpurpose>
+ <refpurpose>Tömb elemeit rendezi megtartva az indextársítást</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
- <type>void</type><methodname>asort</methodname>
-
<methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <type>bool</type><methodname>asort</methodname>
+
<methodparam><type>array</type><parameter>&array</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
</methodsynopsis>
<para>
@@ -21,29 +19,34 @@
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>asort</function> példa</title>
<programlisting role="php">
<![CDATA[
-$gyumolcsok = array ("d"=>"citrom", "a"=>"narancs",
"b"=>"banán", "c"=>"alma");
-asort ($gyumolcsok);
-reset ($gyumolcsok);
-while (list ($key, $val) = each ($gyumolcsok)) {
+<?php
+$gyumolcsok = array("d" => "citrom", "a" =>
"narancs", "b" => "banán", "c" => "alma");
+asort($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[
c = alma
b = banán
d = citrom
a = narancs
]]>
- </screen>
- </para>
+ </screen>
</example>
<para>
A gyümölcsök az abc-nek megfelelõen növekvõ sorrendben vannak rendezve,